Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Anonymous's avatar
Anonymous
6 years ago

Proper way to load next scene in unity VR

Whenever I try to load the next scene, the game stutters or freezes for 1 second.   This is in Oculus Quest.   This freezing for 1 second is pretty bad for the eyes in VR.
I've been using this function to go to next scene

SceneManager.LoadScene(1);

Is there a better way to load the next scene?   I have 3 scenes total so far and switching between them sometimes freezes.   I wonder if it is a memory issue and I need to preload my scenes into memory first.

2 Replies

Replies have been turned off for this discussion
  • Anonymous's avatar
    Anonymous
    I think SceneManager.LoadSceneAsync fixed it.
  • I tried using SceneManager.LoadSceneAsync and my app still crashes to Home. Scene switching worked fine on the Oculus Go, but lately on the Quest it does not. Even with the latest Oculus Integration 1.42, and Unity 2019.2.12f1, I am still seeing this behavior.
    I have made a simple project of two scenes with nothing in them but an OVRCameraRig, a canvas and a button to change the scene and the app just crashes. Is anyone else seeing this?