Skip to content

Same code, 7 meters at 30 FPS and 67 cm at 300

Youtube 1:01 16 views
ZetBit

ZetBit

@UC3zY4m_LrHraxTCv-lFPPIg

I pushed a crate in a small benchmark and let friction slow it down by 5% every frame. At 30 FPS it slid 6.67 meters. At 300 FPS the exact same code stopped it after 67 cm, because there are ten times as many frames and the slowdown happens once per frame. Multiplying by delta doesn’t fix it; raising the factor to the power of delta times 60 does (3.3 to 3.4 m at every frame rate from 30 to 300). Measured in C# (.NET 10) on a Ryzen 5 5500. #gamedev #godot #physics #shorts

More Videos