For meshes, use a bounding box around the mesh and test each mesh one at a time. If an EntityVisible() command returns true when the bounding box is visible, you don't even have to test the mesh itself.
This is how I can put lots of flares in a 15,000 poly room, with picking every render in like 0-1 msecs. It usually does about 60 box tests, and then maybe like 3 mesh tests out of that...so like 95% of the triangles you would normally have to test are eliminated.
This is how I can put lots of flares in a 15,000 poly room, with picking every render in like 0-1 msecs. It usually does about 60 box tests, and then maybe like 3 mesh tests out of that...so like 95% of the triangles you would normally have to test are eliminated.