Monado OpenXR Runtime
u_pacing.h File Reference

Shared pacing code. More...

#include "xrt/xrt_compiler.h"
#include "xrt/xrt_defines.h"
Include dependency graph for u_pacing.h:

Go to the source code of this file.

Data Structures

struct  u_pacing_compositor
 Compositor pacing helper interface. More...
 
struct  u_pacing_app
 This application pacing helper is designed to schedule the rendering time of clients that submit frames to a compositor, which runs its own render loop that picks latest completed frames for that client. More...
 
struct  u_pacing_app_factory
 Small helper that creates a app pacers, allows timing information to be collected and controlled to a central place. More...
 
struct  u_pc_display_timing_config
 Configuration for the "display-timing-aware" implementation of u_pacing_compositor. More...
 

Enumerations

enum  u_timing_point { U_TIMING_POINT_WAKE_UP , U_TIMING_POINT_BEGIN , U_TIMING_POINT_SUBMIT_BEGIN , U_TIMING_POINT_SUBMIT_END }
 For marking timepoints on a frame's lifetime, not a async event. More...
 

Functions

xrt_result_t u_pc_display_timing_create (uint64_t estimated_frame_period_ns, const struct u_pc_display_timing_config *config, struct u_pacing_compositor **out_upc)
 Creates a new composition pacing helper that uses real display timing information. More...
 
xrt_result_t u_pc_fake_create (uint64_t estimated_frame_period_ns, uint64_t now_ns, struct u_pacing_compositor **out_upc)
 Creates a new composition pacing helper that does not depend on display timing information. More...
 
xrt_result_t u_pa_factory_create (struct u_pacing_app_factory **out_upaf)
 Creates a new application pacing factory helper. More...
 

Variables

const struct u_pc_display_timing_config U_PC_DISPLAY_TIMING_CONFIG_DEFAULT
 Default configuration values for display-timing-aware compositor pacing. More...
 

Detailed Description

Variable Documentation

◆ U_PC_DISPLAY_TIMING_CONFIG_DEFAULT

const struct u_pc_display_timing_config U_PC_DISPLAY_TIMING_CONFIG_DEFAULT
extern

Default configuration values for display-timing-aware compositor pacing.

See also
u_pc_display_timing_config, u_pc_display_timing_create