Page 1 of 1
Preloading
Posted: 24 Feb 2016, 13:03
by AF
Is there a way to launch the engine and preload a game, then pass it a start script later on for the final load/initialisation?
Re: Preloading
Posted: 24 Feb 2016, 14:45
by Silentwings
Load up the game sdz (or some proxy pre-game menu sdz) with a predefined "default" script.txt, then manufacture the script.txt you actually want and use Spring.Reload(...).
It's not exactly what you asked for, but hopefully close enough.
Re: Preloading
Posted: 24 Feb 2016, 15:14
by gajop
Doing as Silentwings suggested should help update the engine cache (otherwise the caching process can be incredibly slow for the first run), and might also do some OS-level disk caching for the game, but afaik, Spring will still have to load the game for the second time once you pass the new startscript params.
Re: Preloading
Posted: 24 Feb 2016, 15:22
by Silentwings
Although, if you're using a separate sdz for your ingame menu part, that will be small in size and loading it will be very fast.