Game Loop
Every frame: handle input → update the world → draw → repeat at a fixed rate (e.g. 60 FPS).
Beginner
Use the frame time (dt) in updates so speed is the same on fast and slow computers.
Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.
Discussion (0)
Sign in or join free to ask questions and discuss this topic.