Get Available Display Frequencies

Important

All Oculus Quest developers MUST PASS the concept review prior to gaining publishing access to the Quest Store and additional resources. Submit a concept document for review as early in your Quest application development cycle as possible. For additional information and context, please see Submitting Your App to the Oculus Quest Store.

Returns the display frequencies that are available with the current headset.

Overview

The Oculus headsets provide different display frequencies (or frame rates). The Rift is always set to 90 Hz. The Rift S is always set to 80 Hz. However, Oculus Go or Quest can be set to either 60 Hz or 72 Hz. This blueprint returns to available display frequencies for the current head set. Thus, if a Rift is attached, this blueprint will simply return 90 Hz. However, if an Oculus Go or Quest is attached, this blueprint returns an array, where the first entry in the array (with index 0) is 60 Hz, and the second entry in the array (with index 1) is 72 Hz.

Blueprint

Arguments

  • No arguments.

Output

  • Return Value: An array containing one or more available display frequencies. For the Oculus Rift and Oculus Rift S, the output array contains a single entry, containing the values 90 Hz and 80 Hz, respectively. For the Oculus Go and Quest the output array contains two entries, containing the values 60 Hz (index 0) and 72 Hz (index 1).

Sample

In this sample, the Oculus Go frame rate is set to 72 Hz whenever the controller button is pressed down, and 60 Hz whenever the controller button has been released. (In a production application, the array length should be checked before accessing element 1 in the array.)