Performance in Recolor Mode

Albert Astals Cid aacid at kde.org
Sun Oct 25 11:07:46 GMT 2020


El diumenge, 25 d’octubre de 2020, a les 10:19:44 CET, Matthias Möller va escriure:
> Hi Okular Team,
> 
> I very much like your recolor mode ("Configure" -> "Accessibility" -> 
> check "Change Colors" -> select "Change Dark & Light Colors" in combobox).
> 
> Unfortunately, scrolling a pdf in this mode is on my little notebook not 
> that smooth, it is currently a bit sluggish.
> 
> A quick little benchmark session yesterday[1] showed me, that there are 
> some easy improvements left in the `PagePainter::recolor` function. 
> Improvements, which are used for similar functions like 
> `PagePainter::invertLightness`.
> 
> Those changes lowered the runtime for the recolor function on my machine 
> from around 30ms to 3ms. [1]
> 
> I am very confident, that this will solve the small performance problem 
> during scrolling on my notebook, as the recolor can now be done in >24fps.
> 
> 
> Attached to this E-Mail is also a patchfile with the small improvements.

Please create a Merge Request in https://invent.kde.org/graphics/okular

Cheers,
  Albert

> 
> 
> Greets,
> 
>      Matthias M.
> 
> 
> [1] Benchmark Gist: 
> https://gist.github.com/TinyTinni/235527ffba9489ed29f7ba558e13724f
> 
> 
> 






More information about the Okular-devel mailing list