• 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 Will this cause a memory leak?

C

Chris Livermore

Guest
Hi Guys,

Help me clear something up, I am using a script to find the nearest object, However I noticed when called it does a DS_grid_create.

now usually this may not cause an Issue but im calling the thing ALOT!

I take it that this thing firing off every frame is NOT good!?

its not major but .5 MB every minute in memory usage.

Im correct right!?
 
C

Chris Livermore

Guest
Well it was declared as a Variable and the script returns a value from the grid so no it was not running a DS_destroy or Clear no. I got around it by just declaring it in my room creation code.
 
Top