al2950
29-09-2009 00:45:08
I have a few, possibly stupid, questions that i cant quite work out.
My understanding of physics engines is that they should be updated at a constant rate, seperate from the rendering, at about 60-100Hz.
With this understanding i was implementing NxOgre with a seperate thread for the TimeController->advance() method. From what i have read this might be completely wrong!!
So my question, ...Does NxOgre/PhysX update its simulation at a constant rate in a seperate (Hidden) thread and so when you call advance it only updates the objects with the data created from the simulation runnning in the background??
The reason i ask is that my app currently runs at about 30-40 fps, not the 60Hz i would like the physics to work at. I have a few kinematic actors which i call movePosition on, however they do not move smoothly and 'jitter' quite alot
Hope that makes sense to someone!!
Cheers
Gus
My understanding of physics engines is that they should be updated at a constant rate, seperate from the rendering, at about 60-100Hz.
With this understanding i was implementing NxOgre with a seperate thread for the TimeController->advance() method. From what i have read this might be completely wrong!!
So my question, ...Does NxOgre/PhysX update its simulation at a constant rate in a seperate (Hidden) thread and so when you call advance it only updates the objects with the data created from the simulation runnning in the background??
The reason i ask is that my app currently runs at about 30-40 fps, not the 60Hz i would like the physics to work at. I have a few kinematic actors which i call movePosition on, however they do not move smoothly and 'jitter' quite alot
Hope that makes sense to someone!!
Cheers
Gus