Skip to content

Physics system update based on frame delta #968

Answered by jrouwe
MrOnlineCoder asked this question in Q&A
Discussion options

You must be logged in to vote

Are there any negative effect from the fact that Jolt update is tied to frame delta, in terms of simulation correctness or accuracy? Let's say the frame rate will drop to 30 for few seconds, does it have any impact on the system or performance aside from just the fact of running simulations less frequently?

Yes, the more complicated your scene is, the bigger the difference. In principle you don't want to go below 1/60 th of a second, but you also want the delta time to be as consistent as possible from frame to frame. If you vary delta time, you can clearly see the effect on e.g. a ragdoll as it 'sags' a bit when delta time is big and then becomes 'hard' again when delta time is smaller…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by MrOnlineCoder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants