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

--- Comment #19 from Vlad Zahorodnii <[email protected]> ---
Git commit f08169058d78bfc8fa13bab09a01aaf3bbe9ffc6 by Vlad Zahorodnii, on
behalf of Xaver Hugl.
Committed on 17/09/2026 at 08:19.
Pushed by vladz into branch 'master'.

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.

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/f08169058d78bfc8fa13bab09a01aaf3bbe9ffc6

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

Reply via email to