https://bugs.kde.org/show_bug.cgi?id=525619

--- Comment #22 from Vlad Zahorodnii <[email protected]> ---
Git commit 6e57f9ea47f66ceb08136269538829deb778ef22 by Vlad Zahorodnii.
Committed on 17/09/2026 at 08:47.
Pushed by vladz into branch 'Plasma/6.8'.

plugins/screencast: pace screencasts with fixed intervals

The previous code did a rough estimation of fixed intervals by
modifying the timer to match the target refresh rate, but that can
be very inaccurate. So far, this wasn't too much of a problem, but
timers can both fire too soon and too late, which can mess things
up with commit-timing.

Instead, this uses a SoftwareVsyncMonitor to ensure each timestamp is
exactly a multiple of 1/framerate seconds after the last.


(cherry picked from commit f08169058d78bfc8fa13bab09a01aaf3bbe9ffc6)

Co-authored-by: Xaver Hugl <[email protected]>

M  +14   -42   src/plugins/screencast/screencaststream.cpp
M  +7    -5    src/plugins/screencast/screencaststream.h
M  +5    -0    src/utils/softwarevsyncmonitor.cpp
M  +1    -0    src/utils/softwarevsyncmonitor.h

https://invent.kde.org/plasma/kwin/-/commit/6e57f9ea47f66ceb08136269538829deb778ef22

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to