Hello guys,
I have a problem with my loading async.
I don’t know why but before it worked well. Now he take 45 seconds approximatly to load a new scene.
I’m using HDRP render.
I have use a gui text to check the percent progress of the load async.
He stay 10 seconds at 2%, 5 seconds at 3% etc… and at 7% after he go to 90% and load the scene.
I send you 2 screenshots of my profiler. That’s strange, the graphic is linear during all the load async.
If I delete all my 3D objects in the scene and keep only one 3D object the problem is still there.
The code:
IEnumerator LoadAsyncScene () {
AsyncLoad = SceneManager.LoadSceneAsync("Ceclon");
AsyncLoad.allowSceneActivation = false;
while (!AsyncLoad.isDone) {
/*Async information*/
TextAsync.text = (AsyncLoad.progress * 100).ToString("F0") + "%";
if ((AsyncLoad.progress >= 0.9f) && (_FadeCanvas.alpha == 1)) {
TextAsync.text = "100%";
yield return new WaitForSeconds(0.25f);
AsyncLoad.allowSceneActivation = true;
}
yield return null;
}
}
Thank you everyone,
Best regards,
Alexandre

