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

--- Comment #47 from Brandon Wright <bear...@gmail.com> ---
Created attachment 180293
  --> https://bugs.kde.org/attachment.cgi?id=180293&action=edit
Patch using public API and setting interval to 4ms

Here's a patch using the public QAnimationDriver API and using it to set the
interval to 16ms by default, then 4ms in workspace.cpp as an example, which
makes things smoother. I tried using Workspace::init like you did to set the
interval lower than the fastest refresh rate, which would be (1000000 /
fastestRefreshRate), but it just doesn't detect any displays at that point. It
probably needs to be done wherever kwin does display hotplugging and/or video
mode changes. 

I also tried doing a singleton instance and running advance on the window
update, but this doesn't work right because it accelerates the animation.
QDefaultAnimationDriver has access to QUnifiedTimer's private API and can hook
the timer update properly, but with what we're given it's not possible to do
something like my simpler patch. You could have the animation driver not do
timed updates at all and then update on refresh, but I worry that it would
break something else--especially if kwin adds other things using QtQuick.

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

Reply via email to