mirror of
https://github.com/ppy/osu.git
synced 2024-12-05 09:42:54 +08:00
Created Gameplay clocks (markdown)
parent
78a398f9e1
commit
2f99aa0bee
21
Gameplay-clocks.md
Normal file
21
Gameplay-clocks.md
Normal file
@ -0,0 +1,21 @@
|
||||
To allow for the various different components to harmoniously work together, the gameplay clock stack is quite complex.
|
||||
|
||||
![](https://puu.sh/CVmyw/e288546e5c.png)
|
||||
|
||||
|
||||
`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**.
|
Loading…
Reference in New Issue
Block a user