change default ODE world_stepsize to 0.0178 from 0.02

This exactly fits five ODE steps in the default frame time (0.089).
This means that ODE execution time now matches the default minimum frame time.
This eliminates errors between distance travelled as calculated by ODE in clear air and simple extrapolation.
On the old values, ODE would actually do calculations over 0.1 seconds rather than 0.089.
This means that once the avatar is at top speed, no additional packets need to be sent for smooth movement, since no error develops between server and viewer.
This approach replaces the tweaks previously discussed on the opensim-dev mailing list
remove-scene-viewer
Justin Clark-Casey (justincc) 2011-10-14 21:11:00 +01:00
parent 4bfc2f5cde
commit 03102864f0
1 changed files with 2 additions and 2 deletions

View File

@ -627,8 +627,8 @@
world_gravityz = -9.8 world_gravityz = -9.8
; World Step size. (warning these are dangerous. Changing these will probably cause your scene to explode dramatically) ; World Step size. (warning these are dangerous. Changing these will probably cause your scene to explode dramatically)
; reference: fps = (0.09375/ODE_STEPSIZE) * 1000; ; reference: fps = (0.089/ODE_STEPSIZE) * 1000;
world_stepsize = 0.020 world_stepsize = 0.0178
world_internal_steps_without_collisions = 10 world_internal_steps_without_collisions = 10
;World Space settings. Affects memory consumption vs Collider CPU time for avatar and physical prim ;World Space settings. Affects memory consumption vs Collider CPU time for avatar and physical prim