Hi,
Is there a way to pre load everything, or in acts, on first load?
I find that all scenes take a while to load, and I wonder if there is a way, to purge old scenes or files if not necessary anymore as the game progresses. Games like Thimbleweed Park (which I know are newly built programs) load so swiftly. I cant seem to get pre load scenes to work, no matter if I use pre load scene data on start in a scene.
It's odd because even when you have visited a scene it seems to reload from afresh every time....
Any ideas on this, or is there a way to write a bespoke script?
cheers
James
Comments
In general, however, this is a question for Unity rather than AC.
When it comes to preloading, you generally use it in the previous "proper" scene once you know what the next scene is going to be. e.g. if there's a Cutscene that ends with a scene-change, you'd preload the next scene at the start of it.
I can't speak for how Unity works but I'm not sure if it's possible to preload multiple scenes - it might be that preloading another causes the first to be "forgotten". But again, this is a Unity topic rather than one specific to AC. The usual habits of compressing textures, packing sprites, etc all need to be considered for a high performance.
1. Title scene (leading to control room scene)
Set up pre load for control room in title scene on-start. This should then preload control room, ensuring no load time.
2. Control room (leads to play room and dock scenes)
Set up a pre load for dock and play room scene on on-start of Control Room scene.
3. Play Room (leads back to Control Room scene)
Surely this Play Room scene won’t need to pre-load the Control Room as it has been already loaded on the Title Scene?
4. Dock (leads back to Control Room)
Same as 3. Play Room?
Hope that makes sense?
So my question is, do the scenes stay pre loaded once the player goes into the play room scene? Or, will it re load the control room when coming back? Therefore ruining my pre load set up?
Also, for this to work, so I need it on asynchronous or off?
Thanks chris!
Asyncronous loading is necessary for preloading. Also be aware that while preloading should indeed improve load times, it doesn't make them disappear completely.