OpenXRFrameSynthesisExtension
Inherits: OpenXRExtensionWrapper < Object
Description
Section titled “Description”The OpenXR Frame synthesis extension allows for advanced reprojection at low(er) framerates.
This class implements the OpenXR Frame synthesis extension. When enabled in the project settings and supported by the XR runtime in use, frame synthesis uses advanced reprojection techniques to inject additional frames so that your XR experience hits the full frame rate of the device.
Properties
Section titled “Properties”| Type | Name | Default |
|---|---|---|
| bool | enabled |
false |
| bool | relax_frame_interval |
false |
Methods
Section titled “Methods”| Returns | Method |
|---|---|
| bool | is_available() const |
| void | skip_next_frame() |
Property descriptions
Section titled “Property descriptions”enabled
bool enabled = false
Enable frame synthesis. When true motion vector and depth data is provided to the XR runtime.
relax_frame_interval
bool relax_frame_interval = false
If true this informs the XR runtime we will be providing frames at a greatly reduced rate. Enable this when you expect your application to run at low framerates and wish to inject multiple reprojected frames.
Method descriptions
Section titled “Method descriptions”is_available
bool is_available() const
Returns true if frame synthesis is enabled in the project settings and the current XR runtime supports frame synthesis. The value returned will only be valid once OpenXR has been initialized.
skip_next_frame
void skip_next_frame()
Queues the next frame to be skipped when supplying motion vector and depth data. Call this after teleporting your player or a similar action has moved the player to prevent incorrect reprojection results due to this movement.
