[ODE] performance with rays
David McClurg
dmcclurg at pandemicstudios.com.au
Tue Feb 4 18:48:01 2003
I'm not using the latest ODE but I've noticed something about rays...
I use rays for ground height detection and line of sight (LOS). For ground height, the ray points straight down and no worries. For line of sight, my ray is very long (150m), crosses alot of terrain, and it ends up checking thousands of triangles in my static geometry, thus killing my frame rate.
Proposal: What I propose is that rays only return one contact point -- the nearest one. The test should be iterative with an early out. Perhaps grow the AABB each step or some other incremental approach.
If this is already handled or there is another solution, let me know. Otherwise, I'll have to patch this before I can use rays in ode for LOS.
Ta