From the info available around, i believe that b2ContactID is mostly used for warm starting.
Warm starting is concept of storing previous step information to be used in current step.
This is done to speed up collision resolution.
But this creates a lot of b2ContactID every step. Now this results in a lot of garbage every frame. As a result a lot of garbage gets stacked up after every few frames. This may make the physics faster but causes a jerk after every few frames.
How do i counter it.
I have turned off warm starting and so far things looked improved.
Still some b2ContactID objects are created every time. I think this is because of the general contact hiding. Is there any way i can remove or reduce the creation of lot of objects every frame.
I have done the same by reusing all objects created by me, but i still have some object creation/destruction. So i know it happens inside box2D. Even the memory profile confirms this.
Anything that can be done to counter this.
Also will absence of warm starting result into wrong physics. Or is it ok to have warm-starting turned off.
Warm starting is concept of storing previous step information to be used in current step.
This is done to speed up collision resolution.
But this creates a lot of b2ContactID every step. Now this results in a lot of garbage every frame. As a result a lot of garbage gets stacked up after every few frames. This may make the physics faster but causes a jerk after every few frames.
How do i counter it.
I have turned off warm starting and so far things looked improved.
Still some b2ContactID objects are created every time. I think this is because of the general contact hiding. Is there any way i can remove or reduce the creation of lot of objects every frame.
I have done the same by reusing all objects created by me, but i still have some object creation/destruction. So i know it happens inside box2D. Even the memory profile confirms this.
Anything that can be done to counter this.
Also will absence of warm starting result into wrong physics. Or is it ok to have warm-starting turned off.