[client] app: collect render and frame timing information

This commit is contained in:
Geoffrey McRae
2021-07-09 01:53:49 +10:00
parent 94ae9a95d7
commit c3bc5fb0ff
2 changed files with 25 additions and 4 deletions

View File

@@ -29,6 +29,7 @@
#include "common/types.h"
#include "common/ivshmem.h"
#include "common/locking.h"
#include "common/ringbuffer.h"
#include "spice/spice.h"
#include <lgmp/client.h>
@@ -96,9 +97,11 @@ struct AppState
atomic_uint_least64_t frameTime;
uint64_t lastFrameTime;
uint64_t renderTime;
uint64_t lastRenderTime;
atomic_uint_least64_t frameCount;
uint64_t renderCount;
RingBuffer renderTimings;
RingBuffer frameTimings;
uint64_t resizeTimeout;
bool resizeDone;