Preloading between world changes?


(Sheldon) #1

How would you approach it? I’m trying to get a loading screen going between two worlds switching, I’m a bit confused as to how it would be implemented


(Zachary Lewis) #2

Are you loading assets from a server, or just generating and setting up the world?


(Sheldon) #3

It just generates and sets up the world


(Zachary Lewis) #4

You might want to break world generation up over a few frames, then.

Say you’ve got to iterate through one million items. Break it up so you iterate through one thousand per tick, and increment a progress bar then. That way, the game has a chance to render between data “chunks” so you can show a progress bar filling up.