Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

GMRoomPack

Package GameMaker rooms and load them as you please · By YellowAfterlife

Load data over multiple frames.

A topic by Kehler Creations created Apr 14, 2020 Views: 233 Replies: 1
Viewing posts 1 to 2

I am making a game with very large rooms. When I load a new chunk in, the game freezes for a moment, which I assume is because of all the new data it has to load.

I am wondering if there is a way to load the new rooms over multiple frames, only creating some of the elements each frame, to prevent the game from freezing?

Developer

You can:

  • See if using YYC makes any difference
  • If not, use the profiler to establish what takes up most of the time during load

If profiler indicates that it's the actual element creation, you can use room_pack_include_layer to load a specific layer, thus splitting the process into several passes.