Closed lojjic closed 4 years ago
The emulated device's requestAnimationFrame wasn't returning its handle. This was preventing proper cleanup with cancelAnimationFrame, and potential cases of multiple rAF listeners in flight for the same XRFrame.
requestAnimationFrame
cancelAnimationFrame
Looking good to me, thanks!
The emulated device's
requestAnimationFrame
wasn't returning its handle. This was preventing proper cleanup withcancelAnimationFrame
, and potential cases of multiple rAF listeners in flight for the same XRFrame.