- Home /
Profiler mystery with Physics2d
Hi,
I am using the profiler and I see hundreds of calls under Physics2d.contactPreSolveAcquire
The objects are listed as N/A and their values are 0.
Under Physics2d.Simulate I get a 25% usage that gradually slows eveything down. It is also created by a N/A object.
How do I find the problem with no more info?
Thanks
That is called prior to each contact being solved by Box2D but it's doing $$anonymous$$imal work there, just storing away the contact information. You should always try to keep the number of contacts being solved to a $$anonymous$$imum, however a few hundred contacts should be acceptable depending on the device its being run on.
25% of the cycle-time taken solving hundreds of contacts per step isn't too bad. If everything really slows down then it'll probably be because the number of contacts grows much higher?