mutter/doc/frame-scheduling.md
Sebastian Wick edfd1880c9 docs: Move the gitlab wiki and other docs to the docs/ directory
Let's try to consolidate our documentation in doc/ in the repo. This
includes some documentation from README.md, the HACKING.md coding style
and the gitlab wiki.

The README.md file now links to all top-level topics (i.e. not reachable
via other topics).

This also includes a few small changes to make things more consistent.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3465>
2024-01-03 20:54:57 +00:00

477 B

Frame scheduling

ClutterFrameClock state diagram.

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