1 decade ago by quanghd
Hi guys!
I was developing a game on ImpactJS and build to native app by using CocoonJs, it works correct and a little smooth on both iOS and Android devices. But when i try it on iPad 2, it shows a critical problem about memory management.
You know, iPad 2 has 512MB RAM, and it'll kill any running application when the free memory is too low (maybe lower than 30MB). My game consume 200MB RAM and it's always killed. I did some memory profiling and saw that large images is the reason.
And the question is: When do garbage collector act? why the garbage collector don't force when I switch between ig.Game? So, it's reason why memory never free.
I was developing a game on ImpactJS and build to native app by using CocoonJs, it works correct and a little smooth on both iOS and Android devices. But when i try it on iPad 2, it shows a critical problem about memory management.
You know, iPad 2 has 512MB RAM, and it'll kill any running application when the free memory is too low (maybe lower than 30MB). My game consume 200MB RAM and it's always killed. I did some memory profiling and saw that large images is the reason.
And the question is: When do garbage collector act? why the garbage collector don't force when I switch between ig.Game? So, it's reason why memory never free.