GMS 2 instance_create_layer() performance

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.


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.