NVIDIAGameWorks / PhysX

NVIDIA PhysX SDK

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Merged / separated trimesh, which is better for collision detection?

pkusilence opened this issue · comments

In game dev, visible trimeshes are often merged to reduce drawCall, which leads to huge AABBs for collision detection. We are wondering if those meshes are separated, the collision detection can be faster?

I have done a test that 168 convexes move along a straight racing line, with merged / separated trimesh as roads and fences. The result shows that the performances have no difference. (But if the convexes are not aligned with roads and fences, the simulation consumption increases 0.22ms. since midphase has easier codes to transverse AABB rather than OBB).

image

The test results have no large difference between merged / separated trimesh.