From 443b674ac99c705c8bce2e9ce439f6fe7fed3dd4 Mon Sep 17 00:00:00 2001 From: Xottab-DUTY Date: Sat, 26 Oct 2019 15:24:39 +0500 Subject: [PATCH] Floating point precision for physics related projects should be precise on Windows x64 (close #383) There's no ability to change the precision in runtime on Windows x64, so the physics calculations always were in low precision. This caused some dynamic objects were falling through terrain on spawn. --- Externals/ODE.vcxproj | 3 +++ Externals/OPCODE/OPCODE.vcxproj | 3 +++ src/xrCDB/xrCDB.vcxproj | 3 +++ src/xrPhysics/xrPhysics.vcxproj | 3 +++ 4 files changed, 12 insertions(+) diff --git a/Externals/ODE.vcxproj b/Externals/ODE.vcxproj index c78ea1e7782..2752a9d17f4 100644 --- a/Externals/ODE.vcxproj +++ b/Externals/ODE.vcxproj @@ -86,6 +86,7 @@ StreamingSIMDExtensions2 stdcpp14 stdcpp14 + Precise ode/config/msvcdefs.def @@ -97,6 +98,7 @@ StreamingSIMDExtensions2 stdcpp14 stdcpp14 + Precise @@ -104,6 +106,7 @@ dNODEBUG;%(PreprocessorDefinitions) stdcpp14 stdcpp14 + Precise diff --git a/Externals/OPCODE/OPCODE.vcxproj b/Externals/OPCODE/OPCODE.vcxproj index 9ef5fde1b73..2367f71f663 100644 --- a/Externals/OPCODE/OPCODE.vcxproj +++ b/Externals/OPCODE/OPCODE.vcxproj @@ -94,6 +94,7 @@ pch.hpp OPCODE_EXPORTS;%(PreprocessorDefinitions) stdcpp17 + Precise @@ -109,6 +110,7 @@ pch.hpp OPCODE_EXPORTS;%(PreprocessorDefinitions) stdcpp17 + Precise @@ -131,6 +133,7 @@ pch.hpp OPCODE_EXPORTS;%(PreprocessorDefinitions) stdcpp17 + Precise diff --git a/src/xrCDB/xrCDB.vcxproj b/src/xrCDB/xrCDB.vcxproj index 3b70aa3b254..a3187c84448 100644 --- a/src/xrCDB/xrCDB.vcxproj +++ b/src/xrCDB/xrCDB.vcxproj @@ -102,11 +102,13 @@ _USRDLL;XRCDB_EXPORTS;%(PreprocessorDefinitions) StreamingSIMDExtensions2 + Precise _USRDLL;XRCDB_EXPORTS;%(PreprocessorDefinitions) + Precise @@ -128,6 +130,7 @@ _USRDLL;XRCDB_EXPORTS;%(PreprocessorDefinitions) + Precise diff --git a/src/xrPhysics/xrPhysics.vcxproj b/src/xrPhysics/xrPhysics.vcxproj index aab18c49b98..c048582e72e 100644 --- a/src/xrPhysics/xrPhysics.vcxproj +++ b/src/xrPhysics/xrPhysics.vcxproj @@ -108,6 +108,7 @@ _USRDLL;XRPHYSICS_EXPORTS;%(PreprocessorDefinitions) $(xrExternals)ode/include;%(AdditionalIncludeDirectories) + Precise @@ -121,6 +122,7 @@ _USRDLL;XRPHYSICS_EXPORTS;%(PreprocessorDefinitions) $(xrExternals)ode/include;%(AdditionalIncludeDirectories) + Precise @@ -135,6 +137,7 @@ _USRDLL;XRPHYSICS_EXPORTS;%(PreprocessorDefinitions) ProgramDatabase $(xrExternals)ode/include;%(AdditionalIncludeDirectories) + Precise