MaxLos
Member
^^Title, I have a 2d array whose values are being updated in the Step Event and it's causing a memory leak. The project was ported over from GMS 1.x and it was working fine, I know they made some updates to arrays in 2.3 so maybe that's causing the problem? I'm not sure.
Top graph is without those lines of code, bottom is with
I didn't even know 2d arrays could cause memory leaks.. Is it somehow creating the array multiple times, instead of just updating its values?
Code:
settings[0, 1] = string(global.resolution) + "x";
settings[1, 1] = string(round(global.music_volume * 100)) + "%";
settings[2, 1] = string(round(global.sfx_volume * 100)) + "%";
I didn't even know 2d arrays could cause memory leaks.. Is it somehow creating the array multiple times, instead of just updating its values?