[client] main: dont push an invalid value into the timings buffers

This commit is contained in:
Geoffrey McRae
2021-07-10 14:20:28 +10:00
parent 23f9855768
commit 8e3df5a38f
2 changed files with 16 additions and 4 deletions

View File

@@ -96,8 +96,10 @@ struct AppState
bool formatValid;
atomic_uint_least64_t frameTime;
uint64_t lastFrameTime;
bool lastFrameTimeValid;
uint64_t renderTime;
uint64_t lastRenderTime;
bool lastRenderTimeValid;
atomic_uint_least64_t frameCount;
uint64_t renderCount;
RingBuffer renderTimings;