mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-15 03:48:09 +00:00
[client] main: use the monotonic clock to calculate the ups/fps
The accumulated time is not the best way to do this as the timer function callback may not be exactly every 1000ms, by using the monotonic clock we will get more accurate results.
This commit is contained in:
@@ -104,7 +104,6 @@ struct AppState
|
||||
RingBuffer renderTimings;
|
||||
RingBuffer frameTimings;
|
||||
|
||||
atomic_uint_least64_t renderTime;
|
||||
atomic_uint_least64_t renderCount, frameCount;
|
||||
_Atomic(float) fps, ups;
|
||||
|
||||
|
Reference in New Issue
Block a user