Version: 0.6.80 (using 4.00.80 (KDE 4.0.80 >= 20080104), 'Frugalware) Compiler: gcc OS: Linux (i686) release 2.6.23-fw6 I like to Black background with Green Text in the foreground in okular. But the scrolling and repainting has become so slow after changing accessibility colors. without changing colors scrolling etc. is fast but changed colors are slowing okular's performance.
I cannot reproduce the "painfully slowness" when activating the accessibility settings. Oh, and we even state in the configuration "These options can *badly* affect drawing speed" [emphasis by me].
We could probably get a marginal improvement using Blitz::invert for the invert colours choice. --- okular/ui/pagepainter.cpp (revision 891032) +++ okular/ui/pagepainter.cpp (working copy) @@ -252,8 +252,8 @@ switch ( Okular::Settings::renderMode() ) { case Okular::Settings::EnumRenderMode::Inverted: - // Invert image pixels using QImage internal function - backImage.invertPixels(QImage::InvertRgb); + // Invert pixels using Blitz RGB version + Blitz::invert( backImage ); break; case Okular::Settings::EnumRenderMode::Recolor: // Recolor image using Blitz::flatten with dither:0 Mohd: Can you provide more information on which combination(s) of settings causes you problems, and the extent of the slow-down ("painful" is a bit to subjective to fix). Please specify exactly which settings you are using, and roughly how much slower it makes compared to the default settings. It would also be useful to know which version of Qt you are using.
Mohd: Can you please respond to the questions identified in comment #2?
I am in a similar situation: without inverted colors, scrolling is smooth. As soon as inverted colors are activated (white text on black background), scrolling and changing pages happen after a lag of about 1-2 seconds. My environment: kernel 2.6.31 (patched by gentoo) xorg-server 1.6.3.901-2 qt 4.5.2 kde 4.3.2 okular settings: color mode "invert colors". Other settings seem to be unrelated. The lag seems directly linked to the used zoom level (more zoom -> more lag). In the same environment, the same document opened with kpdf (kde 3.5.10) scrolls with no lag at all. If other information is needed, just ask. regards, Igor
--Status update-- qt-4.6.2, using the raster engine kde-4.4 Delays are no more present, even when zooming. regards, Igor
This bug has been quiet in a while, and Igor couldn't reproduce it over a year ago. Is this still an issue for the original commiter? If not, we can close the bug.
I was unable to reproduce on Kubuntu 11.10, KDE 4.7.1.
Marking as resolved, please reopen if you can still reproduce it