← /browse

Making Games / 5 min /

Why does a game run faster on a faster PC? Game loop and delta time explained

Ever noticed a game run faster on a quicker computer? That's the *game loop* at work. If you move things a fixed amount every frame, a faster machine means faster gameplay.

Delta time fixes it by moving things by speed × time since the last frame. Drag the frame-rate slider and watch a frame-locked square race ahead while the delta-time square stays steady, then learn the traps that still remain.

Two squares racing along lanes: one frame-locked and far ahead, one using delta time moving steadily

More in Making Games

all Making Games →