XRSPACE Developer Console

XR LifeCycle

Lifecycle overview

Lifecycle flowchart - General process

../_images/LifyCycle-GeneralProcess.png

Following events will not necessarily together in the same frame:

  • OnBeginVR()

Following events will fire in the different thread, thus non-sequentially occur between Update() and LateUpdate():

  • OnRecenterTrackingBefore

  • OnRecenterTrackingFinish

XR event introduction

  • OnBeginVR: During beginVR, if an application starts or resumes and VR mode’s ready, the system will start stereo rendering.

  • OnRecenterTrackingBefore: During RelocationStarted, the system try to relocate users’s position.it will automatically be executed every time the application resumes.

  • OnRecenterTrackingFinish: During  RelocationStopped, the 6DoF quality is good enough to work.

  • OnSubmitFrame: During SubmitFrame, when rendering buffer is ready, the system will submit right and left eye image to display.

  • OnEndVR: During endVR, if an application pauses or stops and VR mode has stopped, the system will stop stereo rendering.

Note

More XR event description, please vivst API - XREvent.