From fc4f52e61d7ab545a1624bae679199540aedb545 Mon Sep 17 00:00:00 2001 From: Bruno Da Silva Date: Sun, 7 Jun 2026 20:14:36 +0000 Subject: [PATCH] add opengl drift correction option to meson.options/meson.build --- meson.build | 4 ++++ meson.options | 1 + 2 files changed, 5 insertions(+) diff --git a/meson.build b/meson.build index 4afb61f7..56cfbed1 100644 --- a/meson.build +++ b/meson.build @@ -135,6 +135,10 @@ if get_option('ignore_memory_faults') tracy_common_args += ['-DTRACY_IGNORE_MEMORY_FAULTS'] endif +if get_option('opengl_auto_calibration') + tracy_common_args += ['-DTRACY_OPENGL_AUTO_CALIBRATION'] +endif + tracy_shared_libs = get_option('default_library') == 'shared' if tracy_shared_libs diff --git a/meson.options b/meson.options index 55e4fbf1..f638d071 100644 --- a/meson.options +++ b/meson.options @@ -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('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('opengl_auto_calibration', type : 'boolean', value : false, description : 'Periodically recalibrate OpenGL GPU/CPU clock drift (forces a CPU/GPU sync each time)')