Class FBDisplayRefreshRate

java.lang.Object
org.lwjgl.openxr.FBDisplayRefreshRate

public class FBDisplayRefreshRate extends Object
The XR_FB_display_refresh_rate extension.

On platforms which support dynamically adjusting the display refresh rate, application developers may request a specific display refresh rate in order to improve the overall user experience, examples include:

  • A video application may choose a display refresh rate which better matches the video content playback rate in order to achieve smoother video frames.
  • An application which can support a higher frame rate may choose to render at the higher rate to improve the overall perceptual quality, for example, lower latency and less flicker.

This extension allows:

  • An application to identify what display refresh rates the session supports and the current display refresh rate.
  • An application to request a display refresh rate to indicate its preference to the runtime.
  • An application to receive notification of changes to the display refresh rate which are delivered via events.

In order to enable the functionality of this extension, the application must pass the name of the extension into CreateInstance via the XrInstanceCreateInfo::enabledExtensionNames parameter as indicated in the extension section.