Add conditional profiling in Editor (run only when using Profiler window)

This commit is contained in:
Wojtek Figat
2023-09-25 18:34:07 +02:00
parent 216a5e9f92
commit da47088250
6 changed files with 30 additions and 6 deletions

View File

@@ -14,7 +14,7 @@ RenderStatsData RenderStatsData::Counter;
int32 ProfilerGPU::_depth = 0;
Array<GPUTimerQuery*> ProfilerGPU::_timerQueriesPool;
Array<GPUTimerQuery*> ProfilerGPU::_timerQueriesFree;
bool ProfilerGPU::Enabled = true;
bool ProfilerGPU::Enabled = false;
int32 ProfilerGPU::CurrentBuffer = 0;
ProfilerGPU::EventBuffer ProfilerGPU::Buffers[PROFILER_GPU_EVENTS_FRAMES];