Switch between the available frame rates on your WebXR device.

Starting with a default set of frame rates of 60, 72 and 90, this example adapts to offer the set of available frame rates reported by the device it's running on.

Requesting changes to frame rates on non-WebXR devices, or running in non-immersive mode will have no effect but requested changes will be applied on entry to immersive mode.

view code