Pre loading scene transitions
Author: Aaron King
This week I was trying to get the loading times down between the room transitions. I thought that would be a pretty easy fix, just preload all the next scenes in when entering a new room and unload all the previous ones. Turned out that was a much bigger issue than I had imagined. While having all the next possible scenes preloaded in and waiting until they needed to be activated was not much issue. The real issues came with trying to unload a scene that hadn't been fully loaded yet. Unity has no real way of canceling an async scene load without the scene being 100% loaded in, and while that wouldn't normally be an issue to just finish loading in the scene and then just instantly unload it. Our scenes are all built to place the player at specific spawn points upon loading in, thus slinging the player around the map as scenes load in fully and then get removed. The other issues with pre-loading I haven't even fully figured out what is the main problem, so this is currently still an on going issue that I will be looking more into to try and find a 'good' solution for.
Normally I would include the solution I found here, but this week I was unable to find a solution that worked every time without causing a multitude of errors and or crashes. I did reach out to the team for suggestions but they all had the same ideas I had already tried to get working. Hopefully next week I am able to find a solution that will work and allow the room transition loading times to be much lower than in the current build of the game.
Disavowed
Status | In development |
Authors | King Studio, Devon0033, Mike_Sroka, Michael-W-Smith7 |
Genre | Adventure |
Tags | 2D, Action-Adventure, Metroidvania, Unity |
More posts
- Steam Launch!!!Dec 17, 2022
- Coming to a closeDec 16, 2022
- Project OverviewDec 14, 2022
- Steam StuffDec 13, 2022
- Achievement GetDec 11, 2022
- Controls Remapping AgainDec 10, 2022
- Steam funDec 09, 2022
- Boss Music ImplementationDec 09, 2022
- SteamWorksDec 02, 2022
- Callback Issue with Controller SupportDec 02, 2022
Leave a comment
Log in with itch.io to leave a comment.