lovr.headset.setRefreshRate

Edit

Sets the display refresh rate, in Hz.

success = lovr.headset.setRefreshRate(rate)

Arguments

NameTypeDescription
ratenumber The new refresh rate, in Hz.

Returns

NameTypeDescription
successboolean 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.

See also