|
|
@@ -523,6 +523,12 @@ if (TRACK_NARROWPHASE_STATS)
|
|
|
target_compile_definitions(Jolt PUBLIC JPH_TRACK_NARROWPHASE_STATS)
|
|
|
endif()
|
|
|
|
|
|
+# Setting to enable the debug renderer. The debug renderer is enabled by default with Debug and Release builds.
|
|
|
+# Note that enabling this reduces the performance of the library even if you're not drawing anything.
|
|
|
+if (DEBUG_RENDERER_IN_DISTRIBUTION)
|
|
|
+ target_compile_definitions(Jolt PUBLIC "$<$<CONFIG:Distribution>:JPH_DEBUG_RENDERER>")
|
|
|
+endif()
|
|
|
+
|
|
|
# Emit the instruction set definitions to ensure that child projects use the same settings even if they override the used instruction sets (a mismatch causes link errors)
|
|
|
function(EMIT_X86_INSTRUCTION_SET_DEFINITIONS)
|
|
|
if (USE_AVX512)
|