Monado OpenXR Runtime
fake_timing Struct Reference

A very simple pacer that tries it best to pace a compositor. More...

Collaboration diagram for fake_timing:

Data Fields

struct u_pacing_compositor base
 
int64_t frame_period_ns
 The periodicity of the display. More...
 
int64_t last_present_time_ns
 When the last frame was presented, not displayed. More...
 
struct u_var_draggable_f32 present_to_display_offset_ms
 Very often the present time that we get from the system is only when the display engine starts scanning out from the buffers we provided, and not when the pixels turned into photons that the user sees. More...
 
int64_t comp_time_ns
 The amount of time that the application needs to render frame. More...
 
int64_t frame_id_generator
 This won't run out, trust me. More...
 
struct frame frames [8]
 Frames we keep track off. More...
 
struct u_live_stats_ns cpu draw submit gpu gpu_delay total_frame
 Live stats we keep track off. More...
 

Detailed Description

A very simple pacer that tries it best to pace a compositor.

Used when the compositor can't get any good or limited feedback from the presentation engine about timing.

Field Documentation

◆ comp_time_ns

int64_t fake_timing::comp_time_ns

The amount of time that the application needs to render frame.

◆ frame_id_generator

int64_t fake_timing::frame_id_generator

This won't run out, trust me.

◆ frame_period_ns

int64_t fake_timing::frame_period_ns

The periodicity of the display.

◆ frames

struct frame fake_timing::frames[8]

Frames we keep track off.

◆ last_present_time_ns

int64_t fake_timing::last_present_time_ns

When the last frame was presented, not displayed.

◆ present_to_display_offset_ms

struct u_var_draggable_f32 fake_timing::present_to_display_offset_ms

Very often the present time that we get from the system is only when the display engine starts scanning out from the buffers we provided, and not when the pixels turned into photons that the user sees.

◆ total_frame

struct u_live_stats_ns cpu draw submit gpu gpu_delay fake_timing::total_frame

Live stats we keep track off.


The documentation for this struct was generated from the following file: