News for hackers. Stuff that matters.
Re:Your Code Might Not Need State by connicpu on Tuesday March 28, 2023 @11:55AM (#35343100)
This is one of the traps when you go for the naive approach to framerate independence: simply using the frame delta for stepping your calculations. Results for physics engines are very wacky! It's usually better to step your physics engine at a fixed rate (e.g. 60hz), and make the frequency of steps performed independent of the graphics framerate. Perform some slight interpolation on the position of rendered objects and nobody can tell the difference

There are no comments on this comment yet.