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

--- Comment #40 from Brandon Wright <bear...@gmail.com> ---
I didn't notice the overload on instance() which lets you keep the current, so
here's a better version using the private API:
> diff --git a/src/effect/offscreenquickview.cpp 
> b/src/effect/offscreenquickview.cpp
> index 3dc83f9b2e..f556e3e14f 100644
> --- a/src/effect/offscreenquickview.cpp
> +++ b/src/effect/offscreenquickview.cpp
> @@ -31,6 +31,7 @@
>  #include <QQuickRenderTarget>
>  #include <QTimer>
>  #include <private/qeventpoint_p.h> // for QMutableEventPoint
> +#include <private/qabstractanimation_p.h>
>  
>  namespace KWin
>  {
> @@ -145,6 +146,7 @@ OffscreenQuickView::OffscreenQuickView(ExportMode 
> exportMode, bool alpha)
>      d->m_repaintTimer = std::make_unique<QTimer>();
>      d->m_repaintTimer->setSingleShot(true);
>      d->m_repaintTimer->setInterval(10);
> +    QUnifiedTimer::instance(false)->setTimingInterval(1);
>  
>      connect(d->m_repaintTimer.get(), &QTimer::timeout, this, 
> &OffscreenQuickView::update);
>      connect(d->m_renderControl.get(), &QQuickRenderControl::renderRequested, 
> this, &OffscreenQuickView::handleRenderRequested);

Change the 1 in setTimingInterval to be lower than smallest refresh rate
interval of all available displays.

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

Reply via email to