Skip to content

Gameplay clocks

Dean Herbert edited this page Mar 5, 2019 · 2 revisions

To allow for the various different components to harmoniously work together, the gameplay clock stack is quite complex.

Player:

  • Adds offsets
  • Performs seeks

PauseContainer:

  • Pauses and resumes
  • Caches a GameplayClock (disallowing children to process frames)

RulesetInputManager:

  • Ensures consistent gameplay frames
  • Handles replay and spectator edge cases via a ManualClock
  • Limits updates of all children
  • Recaches GameplayClock but also applies the clock to all children.