Add GPU profile events to WebGPU and use the by default in non-Release builds

This commit is contained in:
Wojtek Figat
2026-02-26 11:08:12 +01:00
parent d2a8ac54cf
commit ac4526744a
4 changed files with 32 additions and 2 deletions

View File

@@ -16,7 +16,11 @@ RenderStatsData RenderStatsData::Counter;
int32 ProfilerGPU::_depth = 0;
bool ProfilerGPU::Enabled = false;
#if GPU_AUTO_PROFILE_EVENTS
bool ProfilerGPU::EventsEnabled = true;
#else
bool ProfilerGPU::EventsEnabled = false;
#endif
int32 ProfilerGPU::CurrentBuffer = 0;
ProfilerGPU::EventBuffer ProfilerGPU::Buffers[PROFILER_GPU_EVENTS_FRAMES];