+2 votes

Hello everyone,

is there practical case where you would avec a "physic delta" lower than target "display_delta"

otherwise :
if we consider that 60fps/15ms would be the standard target for pc games narrow-days, this involve that 15ms will always be the biggest timestep to be acceptable, right ?

would it be reasonable to have a 60fps/15ms target and and physics running at 30ms at the cost of 1 frame delay and tweening between 2 physics frames.

Thanks

(sorry if sound unclear, my battery running flat cannot polish the question)

in Engine by (114 points)

1 Answer

+1 vote

is there practical case where you would avec a "physic delta" lower
than target "display_delta"

You can lower the physics setting to be lower than the frame rate, this is possible because physics and rendering are separate systems.

Is it a good idea? No, it is a really bad idea.
The reason is in how physics calculate collisions. Less physics steps mean less time to find if something is colliding.
The result is things like the player falling through the floor etc. Really unstable physics.

would it be reasonable to have a 60fps/15ms target and and physics
running at 30ms at the cost of 1 frame delay and tweening between 2 physics frames.

If you set the physics frame lower you should see some stuttering. To remove this just tween the visual mesh with the position of the rigid body.
The main problem will be how inaccurate the physics get.

by (1,440 points)

Thank you that what I thought but I needed a confirmation.
I wanted to know all possibilities to speed up my program if needed.
cheers

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.