Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
OpenXRFrameSynthesisExtension
Inherits: OpenXRExtensionWrapper < Object
The OpenXR Frame synthesis extension allows for advanced reprojection at low(er) framerates.
Description
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
|
||
|
Methods
is_available() const |
|
void |
Property Descriptions
Enable frame synthesis. When true motion vector and depth data is provided to the XR runtime.
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
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.
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.