• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

GameMaker instance_create_layer() performance

N

Nathan Wilson

Guest
is or has anyone else experienced a lag in GMS2 when using instance_create_layer()? Gamemaker will noticeably pause the first time I use that function, but be fine the rest of the time. Not really sure what is going on.

Any insight will be appreciated.
 

Slyddar

Member
Does the same thing happen when you use instance_create_depth? How many instances are you creating? Capture the instance to a variable on creation, such as var inst = instance_create_layer() and add a show_debug_message(inst) after your create line, to output the id, and ensure the output window only shows 1 line.
 
Top