BitCache-Labs / bx

The BitCache Labs Tech Stack
Other
1 stars 2 forks source link

Physics is not tied to delta time #1

Open JasondeWolff opened 4 months ago

JasondeWolff commented 4 months ago

The physics is not tied to the delta time. When running on a lower framerate the physics also runs its simulation slower.

ConorDamery commented 4 months ago

So bullet is not very clear how their tick function should be called, if I plug in the variable delta time everything gets jittery (understandably so), it needs to have a fixed step but that only works so long as the real framerate is higher, I guess we could round the fixed delta time by intervals of 1/30, 1/60, 1/120? That should cover most usable framerates I think