SFML community forums

Bindings - other languages => Java => Topic started by: theWelp on September 09, 2015, 10:32:02 pm

Title: GC not running?
Post by: theWelp on September 09, 2015, 10:32:02 pm
I've been having problems with some of the object types in JSFML... specifically with GC. The GC isn't running unless I force it to, on which it alleviates a lot of my memory buildup.

I can deter this by deleting very little but it still happens on occassion, and it still doesn't run the GC.

I have no idea what exactly is the problem, any help would be appreciated.
Title: Re: GC not running?
Post by: pdinklag on September 18, 2015, 09:39:07 am
It doesn't sound like a JSFML specific problem to me really.
JSFML doesn't keep any object references internally as far as I know, so when you release the references, anything should work as usual. If by "forcing" you mean "System.gc()", and it works, that proves my point, because still nothing would happen if there was something wrong.

You might want to tweak the gc settings a bit, but that's out of my scope - try the JVM docs.