Physic engine visualization uses direct draw functions which are expensive and when simulation contains a large amount of objects the visualization is slow.
Improvement can be done by changing draw function calling to GPU buffer with draw data or even use instancing (the best solution but harder to implement).
Physic engine visualization uses direct draw functions which are expensive and when simulation contains a large amount of objects the visualization is slow.
Improvement can be done by changing draw function calling to GPU buffer with draw data or even use instancing (the best solution but harder to implement).