lovr.headset.setDisplayFrequency

Sets the display refresh rate, in Hz.

success = lovr.headset.setDisplayFrequency(frequency)

Arguments

NameTypeDescription
frequencynumber The new refresh rate, in Hz.

Returns

NameTypeDescription
successboolean Whether the display refresh rate was successfully set.

Notes

Changing the display refresh-rate also changes the frequency of lovr.update() and lovr.draw() as they depend on the display frequency.

See also