lovr.headset.setRefreshRate
EditSets the display refresh rate, in Hz.
success = lovr.headset.setRefreshRate(rate)
Arguments
Name | Type | Description |
rate | number | The new refresh rate, in Hz. |
Returns
Name | Type | Description |
success | boolean | Whether the display refresh rate was successfully set. |
Notes
Changing the display refresh-rate usually also changes the frequency of lovr.update() and lovr.draw() as they depend on the refresh rate. However, it's ultimately up to the VR runtime to decide how often the application gets to render, based on available resources.