mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-14 08:22:25 -04:00
Problem: The wlroots implementation of wlr_screencopy applys a lock for a brief duration every time a frame is captured. If an output is eligible for direct scanout then this will result in direct scanout being rapidly toggled on and off since the lock count constantly flips between 0 and 1. On some hardware this causes stuttering every time direct scanout is enabled then disabled. Solution: To mitigate this we wait for there to be 0 locks for 120 frames so that we can be relatively confident that screen recording has stopped before we re-enable direct scanout. |
||
|---|---|---|
| .. | ||
| cursor.c | ||
| output.c | ||
| render.c | ||
| state.c | ||
| swapchain.c | ||