Gear VR Loading screen freeze
Hi,
i am making a loading screen for my Gear VR project. I also made a custom loading/splash screen. It runs very good.
It contains two scenes: 1. the loading scene 2. the main scene
The only problem is that during the loading process the loading scene freezes in the end for a couple of seconds. (you can still move your head but the frame stays in one place) after that the main scene loads normally. The main scene contains a 4k 360° Video.
I am using the following code:
Is there a way to get rid of this short freeze?
i am making a loading screen for my Gear VR project. I also made a custom loading/splash screen. It runs very good.
It contains two scenes: 1. the loading scene 2. the main scene
The only problem is that during the loading process the loading scene freezes in the end for a couple of seconds. (you can still move your head but the frame stays in one place) after that the main scene loads normally. The main scene contains a 4k 360° Video.
I am using the following code:
void Update () {
if (!mainLoaded) {
mainLoaded = true;
Application.backgroundLoadingPriority = ThreadPriority.Low;
StartCoroutine (LoadMain ());
}
}
IEnumerator LoadMain () {
AsyncOperation loadOperation = Application. LoadLevelAsync (1);
if (loadOperation.isDone) {
yield return loadOperation;
}
}Is there a way to get rid of this short freeze?
