$ ./guess_the_languageGame Dev
Game Dev · easy · #134

Why multiply by dt?

pos.x += speed * dt;
  1. To match real time
  2. To smooth the input
  3. To reduce draw calls
  4. To clamp the speed
Scaling by delta time makes movement frame-rate independent.
Play Game Dev ▸