bryanedds / Nu

Repository hosting the open-source Nu Game Engine and related projects.
MIT License
1.05k stars 152 forks source link

See if bullet physics smoothness in dynamic frame rate mode can be improved by... #718

Open bryanedds opened 6 months ago

bryanedds commented 6 months ago

...keeping a running frame time delta average and passing that in to StepSimulation -

https://github.com/bryanedds/Nu/blob/4251c4f890df49d03fe88b134a80582c762dc441/Nu/Nu/Physics/PhysicsEngine3d.fs#L616

...instead of the hacky step time crap we do currently which seems to causing some intermittent physics integration hiccups.

bryanedds commented 4 months ago

Apparently someone figured out how to disable bullet's quasi-interpolation a long while back - https://pybullet.org/Bullet/phpBB3/viewtopic.php?t=2633

Not sure if this is a thing to consider or not.