mcanterb / JRGSS

A port of the RPGMaker Engine to Java for Mac and Linux support
MIT License
35 stars 7 forks source link

Potential Memory Leak at Title Screen - Requires Investigation #12

Closed razavidn closed 9 years ago

razavidn commented 9 years ago

Memory usage seems to steadily climb while title screen is displayed; levels off once the game starts.

mcanterb commented 9 years ago

I'll look into it. The Vidar Title screen loads a series of images to play the background animation, so this may be what you're seeing. However, I wouldn't be surprised to find a memory leak.

mcanterb commented 9 years ago

There is definitely a memory leak here. After letting the Title screen loop a few times, Memory usage was around 4GB and increasing. My first guess would be improper handling of a dispose method somewhere. Next would be a cache using an incorrectly configured key (a key without a proper hashCode method)