- ensure game physics consistency between debug and release by changing optimization options

This commit is contained in:
Ilya Shurumov 2020-08-10 13:32:01 +06:00
parent 0aecea7ccf
commit dbab6de536

View File

@ -18,6 +18,17 @@ workspace "REDRIVER2"
filter "system:Windows"
defines { "USE_32_BIT_ADDR", "PGXP" }
filter "configurations:Debug"
defines {
"DEBUG",
}
symbols "On"
filter "configurations:Release"
defines {
"NDEBUG",
}
-- EMULATOR layer
project "PSX"
kind "StaticLib"
@ -60,6 +71,9 @@ project "PSX"
OPENAL_DIR.."/libs/Win32",
}
filter "configurations:Release"
optimize "Full"
-- game iteslf
project "REDRIVER2"
kind "ConsoleApp"
@ -107,16 +121,13 @@ project "REDRIVER2"
filter "configurations:Debug"
defines {
"DEBUG",
"DEBUG_OPTIONS",
"COLLISION_DEBUG"
}
symbols "On"
filter "configurations:Release"
defines {
"NDEBUG",
"DEBUG_OPTIONS",
--"COLLISION_DEBUG"
}
optimize "On"
optimize "Size" -- code optimizations are disabled due to calculation differences for replays