curioustorvald / Terrarum

Modular game engine for a side-scrolling tilemap platformer, and a game that runs on top of it
Other
13 stars 0 forks source link

Memory leak #9

Closed curioustorvald closed 7 years ago

curioustorvald commented 7 years ago

Probably related with render part that operates with GDX

curioustorvald commented 7 years ago

Some of the UIs inside of uiContainer is one of the culprits

commenting out uiContainer.forEach { if (it != consoleHandler) it.render(batch, camera) } in the Ingame.kt can confirm it.

Lightmap.fireRecalculateEvent also contributes some, although Runtime's Reported Total Memory converges to 1.58 gigs

curioustorvald commented 7 years ago

ItemSlotImageBuilder seems like a culprit, deploying patch in NaN, NaN, NaN...

curioustorvald commented 7 years ago

Looks like already been patched to me -.-

curioustorvald commented 5 years ago

The commit at 2018-12-08T04:26:01+09 is the one actually fixes this pesky fuck.