:github_url: hide .. DO NOT EDIT THIS FILE!!! .. Generated automatically from Godot engine sources. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py. .. XML source: https://github.com/godotengine/godot/tree/master/modules/openxr/doc_classes/OpenXRFrameSynthesisExtension.xml. .. _class_OpenXRFrameSynthesisExtension: OpenXRFrameSynthesisExtension ============================= **Inherits:** :ref:`OpenXRExtensionWrapper` **<** :ref:`Object` The OpenXR Frame synthesis extension allows for advanced reprojection at low(er) framerates. .. rst-class:: classref-introduction-group 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. .. rst-class:: classref-reftable-group Properties ---------- .. table:: :widths: auto +-------------------------+------------------------------------------------------------------------------------------------+-----------+ | :ref:`bool` | :ref:`enabled` | ``false`` | +-------------------------+------------------------------------------------------------------------------------------------+-----------+ | :ref:`bool` | :ref:`relax_frame_interval` | ``false`` | +-------------------------+------------------------------------------------------------------------------------------------+-----------+ .. rst-class:: classref-reftable-group Methods ------- .. table:: :widths: auto +-------------------------+--------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_available`\ (\ ) |const| | +-------------------------+--------------------------------------------------------------------------------------------+ | |void| | :ref:`skip_next_frame`\ (\ ) | +-------------------------+--------------------------------------------------------------------------------------------+ .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Property Descriptions --------------------- .. _class_OpenXRFrameSynthesisExtension_property_enabled: .. rst-class:: classref-property :ref:`bool` **enabled** = ``false`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_enabled**\ (\ value\: :ref:`bool`\ ) - :ref:`bool` **is_enabled**\ (\ ) Enable frame synthesis. When ``true`` motion vector and depth data is provided to the XR runtime. .. rst-class:: classref-item-separator ---- .. _class_OpenXRFrameSynthesisExtension_property_relax_frame_interval: .. rst-class:: classref-property :ref:`bool` **relax_frame_interval** = ``false`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_relax_frame_interval**\ (\ value\: :ref:`bool`\ ) - :ref:`bool` **get_relax_frame_interval**\ (\ ) 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. .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Method Descriptions ------------------- .. _class_OpenXRFrameSynthesisExtension_method_is_available: .. rst-class:: classref-method :ref:`bool` **is_available**\ (\ ) |const| :ref:`🔗` 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. .. rst-class:: classref-item-separator ---- .. _class_OpenXRFrameSynthesisExtension_method_skip_next_frame: .. rst-class:: classref-method |void| **skip_next_frame**\ (\ ) :ref:`🔗` 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. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)` .. |required| replace:: :abbr:`required (This method is required to be overridden when extending its base class.)` .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)` .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)` .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)` .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)` .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)` .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)` .. |void| replace:: :abbr:`void (No return value.)`