Possible to change scroll refresh rate to match monitor

Tim Hanson sideskate at gmail.com
Sat Jan 7 22:54:37 GMT 2023


Interesting .. I suspected as much, but thank you for confirming.

I do have one monitor, but yes for whatever reason the display manager
starts up at 60, and the Xsession runs at 120 Hz.

Nonetheless, can confirm that kile scrolls a pdf smoothly at 120Hz in the
preview pane.
What you said makes sense regarding line scrolling in kate -- also smooth /
instantaneous.

Could it be a performance issue?  Seems unlikely as Okular is not
saturating the CPU (a Ryzen 9 5950x...), and scrolling should be pretty
straightforward (unsure how much rendering is batched internally, though).

Cheers,
Tim

Date: Sat, 07 Jan 2023 10:47:51 +0100
From: David Hurka <david.hurka at mailbox.org>
To: okular-devel at kde.org
Subject: Re: Possible to change scroll refresh rate to match monitor
        (e.g. 120Hz, 144Hz)
Message-ID: <2285352.ElGaqSPkdT at doro>
Content-Type: text/plain; charset="UTF-8"

> Is there some way to get okular to refresh the page faster?
> It seems fixed at 60hz.

Its not possible from within Okular.
According to QScroller documentation, there is a global animation timer
which
sets the update rate.
This timer should match the frame rate of the screen, but apparently that
doesn’t work.
(Maybe you have more than one monitor, or the monitor changes framerate
after
startup, or Qt fails to detect it correctly.)

> Of note other KDE / qt apps refresh at the monitor rate
> (konsole, kate, kile)

It surprises me, because they use either line-wise scrolling, which happens
instantly, or Okular.
If it works in the Kile document preview, that means Kile is better than
the
Okular shell in detecting the framerate.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/okular-devel/attachments/20230107/f4c87ff8/attachment.htm>


More information about the Okular-devel mailing list