[client] app: correct FPS to use an actual per second value

This commit is contained in:
Geoffrey McRae
2021-07-19 10:58:40 +10:00
parent 2736e37e4a
commit 33bf668697
3 changed files with 44 additions and 25 deletions

View File

@@ -103,8 +103,10 @@ struct AppState
bool lastRenderTimeValid;
RingBuffer renderTimings;
RingBuffer frameTimings;
float renderTimeTotal;
float frameTimeTotal;
atomic_uint_least64_t renderTime;
atomic_uint_least64_t renderCount, frameCount;
_Atomic(float) fps, ups;
uint64_t resizeTimeout;
bool resizeDone;