Skip to content

Recompute animation timing on output refresh change - #563

Open
sidewalksndskeletons wants to merge 1 commit into
wlrfx:masterfrom
sidewalksndskeletons:sidewalksndskeletons-patch-1
Open

Recompute animation timing on output refresh change#563
sidewalksndskeletons wants to merge 1 commit into
wlrfx:masterfrom
sidewalksndskeletons:sidewalksndskeletons-patch-1

Conversation

@sidewalksndskeletons

Copy link
Copy Markdown

refresh_nsec is only known once an output actually presents a frame, which happens after animation_manager_init() has already run. At that point no output has a valid refresh_nsec yet, so the animation timing gets stuck on the 60Hz fallback until the next config reload.

Recompute animation timing whenever an output's reported refresh rate changes (first present after startup, or a runtime change e.g. VRR), so it reflects the real refresh rate immediately instead of waiting for a config reload.

refresh_nsec is only known once an output actually presents a
frame, which happens after animation_manager_init() has already
run. At that point no output has a valid refresh_nsec yet, so
the animation timing gets stuck on the 60Hz fallback until the
next config reload.

Recompute animation timing whenever an output's reported refresh
rate changes (first present after startup, or a runtime change
e.g. VRR), so it reflects the real refresh rate immediately
instead of waiting for a config reload.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant