[client] main: add graph for time spent rendering

This is the time spent in the on_render function, not the time between
frames. Having this information helps diagnose slowdowns in renderers.
This commit is contained in:
Quantum
2021-08-03 06:34:55 -04:00
committed by Geoffrey McRae
parent 9192e2039a
commit 62cd5e9c57
2 changed files with 10 additions and 4 deletions

View File

@@ -119,6 +119,7 @@ struct AppState
uint64_t lastRenderTime;
bool lastRenderTimeValid;
RingBuffer renderTimings;
RingBuffer renderDuration;
RingBuffer frameTimings;
atomic_uint_least64_t pendingCount;