backend: add last_render_time interface.

Used for querying how long render takes to complete, used for frame
pacing.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui
2022-12-14 08:07:36 +00:00
parent 64a97b57b5
commit 2a4e32babf
7 changed files with 63 additions and 0 deletions

View File

@@ -249,6 +249,7 @@ typedef struct session {
uint64_t last_render;
struct rolling_avg *frame_time;
struct rolling_max *render_stats;
// === Operation related ===
/// Flags related to the root window