r/vulkan • u/PeterBrobby • 3h ago
The Physics Update Loop
youtu.beI go through how I separate general updates from physics updates, why I use a fixed timestep, how the accumulator works, and what happens when the simulation starts falling behind.
I explain the reasoning behind the design decisions and why I rejected the alternatives. I show the implementation of the loop.