STEPS TO REPRODUCE 1. Open the attached PDF 2. Click "Show Forms" 3. Scroll around in the PDF OBSERVED RESULT Scrolling lags a lot EXPECTED RESULT Scrolling works normally SOFTWARE/OS VERSIONS KDE Frameworks Version: master Qt Version: 5.15.3 ADDITIONAL INFORMATION Poppler from master
Created attachment 148047 [details] The PDF
Created attachment 148048 [details] Hotspot Flamegraph
Commenting https://invent.kde.org/graphics/okular/-/blob/master/gui/pagepainter.cpp#L109 out makes it run smooth
page->_o_nearestPixmap always returns a pixmap with DPR 1, but a dpr of 2 is needed for me, hence the detach in setDevicePixelRatio
That also means the issue is only triggered on high-dpi screens
A possibly relevant merge request was started @ https://invent.kde.org/graphics/okular/-/merge_requests/612
Seems fixed by https://invent.kde.org/graphics/okular/-/commit/521ea660eee1abcf9bb90b7be06f9a38e0f78bb9