Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: GC not running?  (Read 8691 times)

0 Members and 1 Guest are viewing this topic.


  • Newbie
  • *
  • Posts: 1
    • View Profile
GC not running?
« 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.


  • Sr. Member
  • ****
  • Posts: 330
  • JSFML Developer
    • View Profile
    • JSFML Website
Re: GC not running?
« Reply #1 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.
JSFML - The Java binding to SFML.