Description: Very Slow scrolling or no scrolling at with Skia Raster or Vulkan very high resolution image Steps to Reproduce: 1. Download the attached image 2. Insert image & scroll slow Source image: attachment 132958 [details] Actual Results: Very very slow Expected Results: (Very) Slow Reproducible: Always User Profile Reset: No Additional Info: Version: 7.0.0.0.alpha0+ (x64) Build ID: f924658e45f256544e43c3fdb2af9b585d0f0933 CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win; Locale: nl-NL (nl_NL); UI-Language: en-US Calc: CL memcmp 2.15s 2.15s 21.38% 21.38% VCRUNTIME140 [unknown] 0 0x7ffcb58b12de fdtest 1.61s 1.61s 15.98% 15.98% ucrtbase [unknown] 0 0x7ffca8b36000 SkColorFilters::Blend 1.42s 4.80s 14.15% 47.75% skialo [unknown] 0 0x7ffc9245e814 GetMessageW 0.69s 0.69s 6.86% 6.86% USER32 [unknown] 0 0x7ffcbdcc2685 fminf 0.64s 1.72s 6.40% 17.12% ucrtbase [unknown] 0 0x7ffca8b2f3a0 fmaxf 0.64s 1.17s 6.35% 11.61% ucrtbase [unknown] 0 0x7ffca8b2f328
Same can be observed scrolling attachment 123613 [details] in multipage view (less horrific) So optimization wouldn't hurt, if possible :-)
The steps to reproduce are unclear. The "source image" is a text document.
(In reply to Luboš Luňák from comment #2) > The steps to reproduce are unclear. The "source image" is a text document. Most problematic is scrolling pag 17.. but not sure if it's worth looking into
(In reply to Telesto from comment #3) > (In reply to Luboš Luňák from comment #2) > > The steps to reproduce are unclear. The "source image" is a text document. > > Most problematic is scrolling pag 17.. but not sure if it's worth looking > into Could you please create a minimized document ?
Created attachment 160715 [details] Example file
[Automated Action] NeedInfo-To-Unconfirmed
Patch in gerrit: https://gerrit.libreoffice.org/c/core/+/94118 Moving to ASSIGNED
I'm noticing a hard coded 'cache'. In older versions this stuff could be configured.. not sure if people should fiddle around with it.. Expert configuration? But I have see insane large (or awfully slow) PNG's/GIF's/SVG/EPS images.. (there are meta bugs for it).. And I remember also a few presentations.. with quite a lot of madness in it.. The might need for a large cache.. However, this image handling does caching too? So no clue how everything fits together.. Note to myself to check.. Bug 123180 Bug 113038
Luboš Luňák committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/fc0bff85f3338cb4fe8f4d42421cb69801cb3abb cache results of Skia's drawTransformedBitmap() (tdf#132438) It will be available in 7.0.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Just gave the attached document a try on my friend's haswell-era laptop (windows-10, skia/raster, intel haswell 4200u) and while it is useable, scrolling is still quite choppy with libreoffice + skia/raster - whereas with Word2013 scrolling is completly fluent and snappy.
Forgot to link the recorded video of LibreOffice 7.0.2 skia/raster vs Word2013 scrolling: https://youtu.be/umgFyLVlC7I
Luboš Luňák committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/4addedabe6778e70754709290502d721cdef796d tweak not caching images in Skia drawing when upscaling (tdf#132438) It will be available in 7.1.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
The change from 2020-05-14 got later unintentionally affected by another change, but this recent commit should make things work again.
Luboš Luňák committed a patch related to this issue. It has been pushed to "libreoffice-7-0": https://git.libreoffice.org/core/commit/7057d6729c865eac4831f9c286421b553a7c4ee9 tweak not caching images in Skia drawing when upscaling (tdf#132438) It will be available in 7.0.1. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.