Was watching Garbaj's TPS controller video, and he said that for the character you could either use the process funtion or the physics process function, but then joked that only losers use the physics process function. What exactly did he mean by that, do people dislike the physics process function? (keep in mind it was a 3.1 video, so I guess it could be outdated)
What do people have against Physics Process?
Physics process runs at 60Hz by default. Using it for your main character controller can result in stutter and lag, especially if you own (or want to support) high refresh monitors. I use process for my controller logic and it is way smoother.
ok, that makes sense. thnx =)
It isn't interpolated, sadly.
What do you mean by interpolated? (I don't know a ton about the process functions, except that they run every frame and rely on the speed of your computer)
- Edited
@cybereality said: Physics process runs at 60Hz by default. Using it for your main character controller can result in stutter and lag, especially if you own (or want to support) high refresh monitors. I use process for my controller logic and it is way smoother.
I would not recommend running the physics simulation at a variable rate, because of the lower determinism compared to fixed-step processing. Instead, you should install, enable and configure lawnjelly's smoothing-addon to benefit from physics interpolation while using _physics_process(delta)
.
Interesting. I will check that out. Thanks.
@OpinionatedGamer said: What do you mean by interpolated? (I don't know a ton about the process functions, except that they run every frame and rely on the speed of your computer)
See the link provided by @Calinou, under the about sections there's some further links to explanations.
And a link to Glens blog: https://gafferongames.com/post/fix_your_timestep/