free-language / box2d

Automatically exported from code.google.com/p/box2d
0 stars 0 forks source link

Support NULL listeners #106

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The user may wish to turn off a listener by setting it to NULL.

Original issue reported on code.google.com by erinca...@gmail.com on 23 Mar 2010 at 3:53

GoogleCodeExporter commented 9 years ago
It would be better if to separate the PreSolve and PostSolve from the
ContactListerner class. The two callbacks are some time-consuming when there 
are many
contacts and many games don't need them. 

Original comment by Tapir....@gmail.com on 25 Mar 2010 at 1:49

GoogleCodeExporter commented 9 years ago
Tapir, did you run a profile? Is this affecting your frame-rate?

Original comment by erinca...@gmail.com on 3 Apr 2010 at 6:41

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hi, Erin,
I'm sorry, I thought it is so in theory but I just found it is wrong.
Seems b2Island.Report and b2Contact.Update cost much less time than 
b2Island.Solve ().
Whether or not the PreSolve and PostSolve are null is not important for the fps.

Original comment by Tapir....@gmail.com on 13 Apr 2010 at 1:35

GoogleCodeExporter commented 9 years ago
Whether or not the PreSolve and PostSolve are null is not important for the fps 
even
there are many contacts.

Original comment by Tapir....@gmail.com on 13 Apr 2010 at 1:36