diff options
author | Matias N. Goldberg <dark_sylinc@yahoo.com.ar> | 2024-10-21 15:35:22 -0300 |
---|---|---|
committer | Matias N. Goldberg <dark_sylinc@yahoo.com.ar> | 2024-10-22 22:08:46 -0300 |
commit | 668c9b74e24dd52719b06b8f3a8b7d76691526f8 (patch) | |
tree | 873690b3a09084272cd58e6b83c2574435f7ae4a /core/config/engine.h | |
parent | 533c616cb86ff7bb940d58ffbbcc1a3eca0aa33d (diff) | |
download | redot-engine-668c9b74e24dd52719b06b8f3a8b7d76691526f8.tar.gz |
Fix race conditions in breadcrumbs
Adds "--accurate-breadcrumbs" CLI command
Additionally, leave out breadcrumbs code in non-debug, non-dev builds.
Fix regression introduced in #98388 where command_insert_breadcrumb() is
called even in non-debug builds.
Fixes #98338
Diffstat (limited to 'core/config/engine.h')
-rw-r--r-- | core/config/engine.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/config/engine.h b/core/config/engine.h index a0b1ffa981..fd7fbd717e 100644 --- a/core/config/engine.h +++ b/core/config/engine.h @@ -73,6 +73,9 @@ private: bool use_validation_layers = false; bool generate_spirv_debug_info = false; bool extra_gpu_memory_tracking = false; +#if defined(DEBUG_ENABLED) || defined(DEV_ENABLED) + bool accurate_breadcrumbs = false; +#endif int32_t gpu_idx = -1; uint64_t _process_frames = 0; @@ -186,6 +189,9 @@ public: bool is_validation_layers_enabled() const; bool is_generate_spirv_debug_info_enabled() const; bool is_extra_gpu_memory_tracking_enabled() const; +#if defined(DEBUG_ENABLED) || defined(DEV_ENABLED) + bool is_accurate_breadcrumbs_enabled() const; +#endif int32_t get_gpu_index() const; void increment_frames_drawn(); |