mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-11 02:51:10 +00:00
Review of #1707: a client that draws its next frame only after the frame callback of the last one sends no new frame while the tick holds one back, so it got one frame every two refreshes. Once a held frame is still waiting at the next tick, the tick now draws every frame for a second before holding one again; such a client loses at most one refresh per second, while gamescope, which commits without waiting, keeps drawing on arrival. The queued draw also checks again that drawing on arrival is still on, so a frame queued just before streaming, frame generation or paced output switched on is left for the tick.