Couple of small optimisation
Add option to build for gprof Do not build by default with the renderstat (they have a reasonable impact on performances) Separated created ray and castedray in the stats Trying to force some simple function to be inlined
This commit is contained in:
@@ -12,11 +12,17 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}/external/covera
|
||||
option(PACKAGE_TESTS "Build the tests" ON)
|
||||
option(ENABLE_COVERAGE "Build for code coverage" OFF)
|
||||
|
||||
option(SHOW_STATS "Show rendering stat" ON)
|
||||
option(SHOW_STATS "Show rendering stat" OFF)
|
||||
if (SHOW_STATS)
|
||||
add_compile_options(-DRENDER_STATS)
|
||||
endif()
|
||||
|
||||
option(USE_GPROF "Enable profiling" OFF)
|
||||
if (USE_GPROF)
|
||||
add_compile_options(-pg)
|
||||
add_link_options(-pg)
|
||||
endif()
|
||||
|
||||
option(USE_LUA "Enable the use of Lua" ON)
|
||||
if (USE_LUA)
|
||||
add_compile_options(-DENABLE_LUA_SUPPORT)
|
||||
|
||||
Reference in New Issue
Block a user