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).