- Home /
Accurate scene loading progress bar...
Hi guys,
Is there a way to show accurate percentage level of the scene loading progress bar ? I have used AsyncOperation to get the progress information of the loading scene but it gives no accurate information about it. For ex, the progress jumps from 0 to 90% very fast and then it stays the rest of the time that the scene needs to load from 90% to 100%. I read somewhere that from 90% to 100% the initializing of the scene happens that's why it takes most of the time, but how can we have an accurate progress information of the scene that is loading ?
If anyone has an idea how to get that accurate information of the scene loading is free to tell us. If you need the code that i am using i can post it. ;) Thank you everyone.
Sadly, this is about all you get, short of making a fake loading bar. If you notice, Unity is not the only ones. Even major game companies have this issue. You can see it in Bethesda games even, the bar loads fast, then slows way the hell down, basically stops moving, and instantly its done. The main reasoning is likely that larger amounts of data get loaded at the end, more than likely the shaders and such. Shader rendering cannot be calculated by the loading mechanism, so all it can do it tell you about the progress of the data being put into the ram. Basically it has no information from the graphical side.
Thanks for the reply RobAnthem, This is what I've been trying to do when I noticed that most of the game companies are using fake progress bar for scene loading. Is there a method to fake it in such a way that it can be close to real loading progress ? Thank you.
I would say come up with a standard amount of time you would consider to be the SLOWEST loading speed for a device using your game like 5 seconds, then lerp the progress bar based on 0, to the highest, and make it wait for a callback on a successful scene load, so if the callback = true and the time has reached its max, call it loaded and drop the loading GUI to reveal your scene. At the very worst, it may hang for a second on the slowest devices.
Answer by AMU4u · Feb 12, 2017 at 07:55 PM
The best bet is instead of a loading bar, do an information tab on what is loading and leave out the estimation. This has the same exact effect as a loading bar, convincing the user you haven't locked their system up, while not having to feed the user lies about the progress estimation.
Just keep telling them the Dragons Are Co$$anonymous$$g... :P
Actually, ins$$anonymous$$d of information tab I am displaying the scene image while its loading. Don't know but when i opened Subway Surfers game today it looked like they had accurate loading bar progress in their game. Anyway, let's hope that Unity will someday solve this. :P
Thank's.
Your answer
Follow this Question
Related Questions
Do I need a Loading Screen? 1 Answer
How to see if an int ends with a certain number 1 Answer
Progress bar without async scene loading. 1 Answer
How to load scenes Asynchronously? 2 Answers