Closed GoogleCodeExporter closed 8 years ago
I replaced ObjectTable's Dictionary with a ConcurrentDictionary and the problem
has disappeared. It's a bit of a stopgap solution, though. There may be
far-reaching effects that I, being unfamiliar with the code, am unaware of.
Performance may be a little worse as well.
Original comment by shiny....@gmail.com
on 2 May 2014 at 1:55
The reason for using the ObjectTable dictionary is to prevent wrapper objects
from being recreated every time they are used. That way the garbage collector
does less work. However, it's worth testing if maybe using the dictionary is
more of a performance hit than just recreating the objects, especially when
using the thread-safe collection. There's also the question of when and how the
objects in the dictionary are destroyed.
ConcurrentDictionary will indeed patch the issue for now. I'll try to think of
a better solution. Thanks for reporting!
Original comment by andres.traks
on 2 May 2014 at 5:36
BroadphaseProxy objects are no longer stored in the ObjectTable, so this should
be fixed. More info:
https://github.com/AndresTraks/BulletSharp/pull/11
Original comment by andres.traks
on 23 Dec 2014 at 9:29
Original issue reported on code.google.com by
shiny....@gmail.com
on 29 Apr 2014 at 11:46Attachments: