Author Topic: question about GC_CONCURRENT  (Read 528 times)

Offline gamenewer

  • long
  • ***
  • Posts: 171
    • View Profile
question about GC_CONCURRENT
« on: April 29, 2015, 04:06:39 am »
Hi Egon,   If checkForCollisionSpherical method can  cause   GC_CONCURRENT,  I called checkForCollisionSpherical  in onDrawFrame,  the GC_CONCURRENT happend, when reomve    checkForCollisionSpherical , it's ok .   If there are some ways to resovle this problem? Thanks !

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11745
    • View Profile
    • http://www.jpct.net
Re: question about GC_CONCURRENT
« Reply #1 on: April 29, 2015, 09:52:48 pm »
All collision check methods are creating a small amount of objects, which will be collected after some time once they went out of scope. The amount of objects being created has already been reduced to the bare mininum over the years. And a concurrent gc usually isn't a problem, because it runs in parallel on another core. You might want to give ellipsoid collision detection a try instead if that feasible.  Maybe it creates less objects, but I actually don't think so.