add opengl drift correction option to meson.options/meson.build

This commit is contained in:
Bruno Da Silva
2026-06-07 20:14:36 +00:00
parent e2ac8f7973
commit fc4f52e61d
2 changed files with 5 additions and 0 deletions

View File

@@ -135,6 +135,10 @@ if get_option('ignore_memory_faults')
tracy_common_args += ['-DTRACY_IGNORE_MEMORY_FAULTS'] tracy_common_args += ['-DTRACY_IGNORE_MEMORY_FAULTS']
endif endif
if get_option('opengl_auto_calibration')
tracy_common_args += ['-DTRACY_OPENGL_AUTO_CALIBRATION']
endif
tracy_shared_libs = get_option('default_library') == 'shared' tracy_shared_libs = get_option('default_library') == 'shared'
if tracy_shared_libs if tracy_shared_libs

View File

@@ -29,3 +29,4 @@ option('verbose', type : 'boolean', value : false, description : 'Enable verbose
option('no_internal_message', type : 'boolean', value : false, description : 'Prevent the profiler from logging messages') option('no_internal_message', type : 'boolean', value : false, description : 'Prevent the profiler from logging messages')
option('debuginfod', type : 'boolean', value : false, description : 'Enable debuginfod support') option('debuginfod', type : 'boolean', value : false, description : 'Enable debuginfod support')
option('ignore_memory_faults', type : 'boolean', value : false, description : 'Ignore instrumentation errors from memory free events that do not have a matching allocation') option('ignore_memory_faults', type : 'boolean', value : false, description : 'Ignore instrumentation errors from memory free events that do not have a matching allocation')
option('opengl_auto_calibration', type : 'boolean', value : false, description : 'Periodically recalibrate OpenGL GPU/CPU clock drift (forces a CPU/GPU sync each time)')