Skip to content

Lab 2 Check

sh
machinelab test timer
machinelab run --headless -- build/examples/timer_int 3

Discussion Prompts

  • Why does the timer API expose timer_ticks() instead of sleeping directly?
  • What changes if your game updates at 60 Hz but the timer fires faster?
  • Which timing values should be constants?

External Reading

Course/docs licensed CC BY 4.0. Code licensed MIT.