kadinshino
Member
So I'm 15 days into learning GML and I'm getting the hang of most things and reasons why things break. Until now. So I'm going through as much as my project as I can to clean up my code. I discovered that if I turn off the 'background layer' that is created with a basic room, something odd happens.
in the image the top part the background is on. Everything seems to draw normal.
in the bottom layer the background is off. and it seems like the objects just infinity draw sprites.
To me this seems like a huge performance hit. I cant understand why the engine would draw sprites in this way.
all i have set in my objects are draw_self(); within the draw event.
The weirder thing is, not objects seem to have this effect. Slower objects don't seem to draw in this fashion.
Is there something more i need to learn about GML draw function on why this is happening? is this killing resources?
Mucho thanks for the help!
in the image the top part the background is on. Everything seems to draw normal.
in the bottom layer the background is off. and it seems like the objects just infinity draw sprites.
To me this seems like a huge performance hit. I cant understand why the engine would draw sprites in this way.
all i have set in my objects are draw_self(); within the draw event.
The weirder thing is, not objects seem to have this effect. Slower objects don't seem to draw in this fashion.
Is there something more i need to learn about GML draw function on why this is happening? is this killing resources?
Mucho thanks for the help!
Attachments
-
331.7 KB Views: 7