I searched through the manual and didn't find anything that really explained what these two settings are, what they can be used for, and some examples of how they work. Can anyone help fill me in on these settings, "warm starting" and "time of impact." What are they used for?
Warm Start and Time of Impact
General DiscussionThese are internal features that are not meant to be regularly used, hence they are not documented in the manual. They are in the testbed for testing.
warm starting: Box2D uses an iterative solver to compute contact and joint reaction forces. Warm starting improves convergence by using the forces from the previous time step as the initial guess for the current time step.
time of impact: Actually, time of impact is documented in the manual.
warm starting: Box2D uses an iterative solver to compute contact and joint reaction forces. Warm starting improves convergence by using the forces from the previous time step as the initial guess for the current time step.
time of impact: Actually, time of impact is documented in the manual.
Erin Catto wrote:
These are internal features that are not meant to be regularly used, hence they are not documented in the manual. They are in the testbed for testing.
warm starting: Box2D uses an iterative solver to compute contact and joint reaction forces. Warm starting improves convergence by using the forces from the previous time step as the initial guess for the current time step.
time of impact: Actually, time of impact is documented in the manual.
warm starting: Box2D uses an iterative solver to compute contact and joint reaction forces. Warm starting improves convergence by using the forces from the previous time step as the initial guess for the current time step.
time of impact: Actually, time of impact is documented in the manual.
Thanks for the reply. I have a few more questions though.
As you mentioned both of these can be found in the testbed and thats the only reason I know about warm starting is because I have been exploring it in the testbed. Is warm starting good or bad for optimization?
So in production, both of these should be turned off? I noticed that ToI has a huge impact on my FPS when a bunch of collisions happen, to the point that my machine drops to 10 fps from 60. If I turn this off it experiences almost no slow down, but I am concerned about how inaccurate the simulation will be with either of these turned off.
edit: Oh actually I did read about the ToI stuff and forgot it's purpose I guess. It's basically to prevent tunneling it seems. But I am always interested to find out more so please share if you have more thoughts on either of the matters. Warm starting is still kind of ambiguous.
Are you setting the bullet flag? That can affect performance a lot. Also, having lots of fast moving objects can affect performance.
You can find out more about warm starting here:
http://code.google.com/p/box2d/downloads/list
Look at the presentations from 2006 and 2007 (and 2005 if you want the gory details).
You should almost always have warm starting on. Turning it off will not improve performance, but having it off will reduce stability in most cases.
You can find out more about warm starting here:
http://code.google.com/p/box2d/downloads/list
Look at the presentations from 2006 and 2007 (and 2005 if you want the gory details).
You should almost always have warm starting on. Turning it off will not improve performance, but having it off will reduce stability in most cases.
Original thread: https://box2d.org/forum/viewtopic.php?t=8315