Class used within TilesRenderer for scheduling requestAnimationFrame events and toggling between XRSession rAF and window rAF toggles.
Methods
static setXRSession( session: XRSession ): voidSets the active "XRSession" value to use to scheduling rAF callbacks.
static requestAnimationFrame( cb: function ): numberRequest animation frame (defer to XR session if set)
static cancelAnimationFrame( handle: number ): voidCancel animation frame via handle (defer to XR session if set)
static flushPending(): voidFlush and complete pending AFs (defer to XR session if set)