This project has moved. For the latest updates, please go here.

Problem with caching Geoms

Topics: Project Management Forum, User Forum
Apr 13, 2010 at 7:02 PM


In order to optimize my code I am caching (Pool<T>) Geom objects to use for bullets. It all works fine but at random times some bullets become unresponsive.

I've checked if they are static for any reason and they aren't (nor are they set anywhere to be).

I've checked if they don't get added to simulator and they do.


The circled bulelts are unresponsive.


Can there be any reason why they are unresponsive? I've even RESETED all fields in the geom and every bullet goes through the same process, no exceptions. Could it be something with the distance grid? because I cache distance grids depending on Vertices (there are different size/shape bullets, but all sizes and shapes re use vertices from their parent data).