webxr
webxr copied to clipboard
Explicitly spec when inline animation frame loops are suspended
It is implied in the Example at the end of https://immersive-web.github.io/webxr/#animation-frames that "inline" animation frame loops should be suspended while there is an active immersive session:
Applications which use "inline" sessions for rendering to the HTML document do not need to take any special steps to coordinate the animation loops, since the user agent will automatically suspend the animation loops of any "inline" sessions while an immersive session is active.
However, there is no clear spec text around exactly when this should happen.
The most reasonable approach for re-starting the inline session would be after the page has been notified that the immersive session has ended (as a page may want to request a new inline session at such time), and likely the page should stop servicing inline session animation frames once it receives updated inline viewer data and there is an active immersive session.
This makes sense