Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

GMRoomPack

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

Performance / speed which rooms are loaded

A topic by beenbaba created Jun 01, 2023 Views: 149 Replies: 2
Viewing posts 1 to 2
(4 edits)

Hello,

We have a controller object that has a create event that loops through our packed rooms and assembles a level from them. Every so often we experience a drop in FPS at the start of the room. We were wondering if any of the following apply:-

1) If the controllers create event has finished 'loading the rooms', can we assume that all rooms have now been fully loaded? i.e. tiles have appeared, objects have been created etc

2) If not, is there a way to tell when rooms have finished loading? Perhaps we can create a 'generating' loading screen that appears whilst everything is being loaded that is more dynamic than wait X amount of seconds.

Thanks

Developer

Each room_pack_load_ function loads the provided room file/data before returning. This is by all means like instance_create_ functions, but with rooms.

You can use the Profiler in GameMaker’s debugger to figure out what’s time-consuming - perhaps you are occasionally loading more rooms than you think, or some of your rooms take longer to load than others (e.g. the bigger the room, the bigger is its tile grid).

(1 edit)

Thank you :D