Loading dungeons, preload all or load dynamically at runtime?

There's only need for one forum for now. Discuss development. No advertising or thinly veiled attempts at advertising. Create a single thread for your project and be prepared to show and tell.
Post Reply
100goats
Posts: 41
Joined: Mon May 04, 2020 9:29 pm

Loading dungeons, preload all or load dynamically at runtime?

Post by 100goats »

I made a separate post here instead of the thread for my game since this question may help someone else with the same issue.

I have an issue of deciding whether to load a mini dungeon within my game when the player enters one or
loading all the mini dungeons before the game starts.

Can anyone comment about the advantages or disadvantages about each method?
What would you personally do in this situation?

User avatar
Deckhead
Site Admin
Posts: 89
Joined: Fri Feb 21, 2020 5:44 am
Location: Sydney, Australia
Contact:

Re: Loading dungeons, preload all or load dynamically at runtime?

Post by Deckhead »

Depends totally on what devices you intend to target.

Loading all dungeons means loading them all into memory. If you're targeting phones for example, which have lower amount of memory, you probably wouldn't want to do this.

But loading when requiring the dungeon likely means loading screens.

Personally I would just load a dungeon when needed. There's no point in using memory you don't need to until you need it. An exception might be a very small game that I intend to have run super-fast, like a loading screen would be detrimental to the experience (I can't think of an example, but basically if you can't have the player experience a loading screen then you need to load into memory beforehand, or have background loading).
Developer of The Last Boundary and webmaster of IndieGameDev.net

100goats
Posts: 41
Joined: Mon May 04, 2020 9:29 pm

Re: Loading dungeons, preload all or load dynamically at runtime?

Post by 100goats »

Thanks!

I think I will just load the dungeon only when the player enters it since I want to make the game run well on older less powerful computers.

Post Reply