2024-01-03 21:30:16 +00:00
|
|
|
# Clutter Frame scheduling
|
2023-12-18 16:30:53 +00:00
|
|
|
|
|
|
|
`ClutterFrameClock` state diagram.
|
|
|
|
|
|
|
|
```mermaid
|
|
|
|
stateDiagram
|
|
|
|
Init --> Scheduled : schedule update() -> now
|
|
|
|
Idle --> Scheduled : schedule update() -> given presentation time
|
|
|
|
Scheduled --> Dispatching : target time hit
|
|
|
|
Dispatching --> PendingPresented : queued page flip
|
|
|
|
Dispatching --> Idle : no queued page flip
|
|
|
|
PendingPresented --> Scheduled : page flipped, if recent schedule update
|
|
|
|
PendingPresented --> Idle : page flipped
|
|
|
|
```
|