Bug 159649 - Slow scrolling with highlighting in Calc with Skia disabled
Summary: Slow scrolling with highlighting in Calc with Skia disabled
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
7.5.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, perf, regression
Depends on:
Blocks: Scrolling-Performance
  Show dependency treegraph
 
Reported: 2024-02-08 21:30 UTC by Gabor Kelemen (allotropia)
Modified: 2024-04-18 03:39 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file from Calc (9.45 KB, application/vnd.oasis.opendocument.spreadsheet)
2024-02-08 21:30 UTC, Gabor Kelemen (allotropia)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabor Kelemen (allotropia) 2024-02-08 21:30:05 UTC
Created attachment 192475 [details]
Example file from Calc

Scrolling the attached file is slow while content highlighting is happening.

1. Open the attached file in Calc after disabling Skia in Windows or under Linux
2. Make the window full screen
3. Highlight the cells A1:J1 with the mouse
4. Move the mouse cursor to the bottom of the screen to scroll down while highlighting, until to the row 625

-> in 7.4 this took about 5 (Linux) to 8 seconds (Windows VM)
-> in master this takes about 15 (Linux) to 30 seconds (Windows VM)

Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: aa6d11771d085803cdb811579f47debc30c4d94b
CPU threads: 15; OS: Windows 10.0 Build 19045; UI render: default; VCL: win
Locale: hu-HU (hu_HU); UI: en-US
Calc: threaded

Seems to have started in 7.5 with:

https://git.libreoffice.org/core/+/96880f5af713a55d87556af30a08b5f09f00ba48

author	Caolán McNamara <caolanm@redhat.com>	Wed Nov 23 17:29:56 2022 +0000
committer	Caolán McNamara <caolanm@redhat.com>	Wed Nov 23 21:13:50 2022 +0100

tdf#152094 don't attempt scroll paint optimization for devices with a mapmode
Comment 1 Gabor Kelemen (allotropia) 2024-02-08 21:34:36 UTC
bug 50795 also mentions this commit
Comment 2 Luca Evangelisti 2024-02-09 19:38:28 UTC
Hello Mr Gabor Kelemen,
I followed the steps described in detail by you and I had the same problem too. 
I used a laptop with Windows 11 Home OS and in both versions 7.6.4.1 and 24.2.0 of LibreOffice I had this problem but with longer times than those you reported. 
For version 7.6.4.1 the arrival time to row 635 was 69 seconds, while for version 24.2.0 it was 60 seconds

Version: 7.6.4.1 (X86_64) / LibreOffice Community
Build ID: e19e193f88cd6c0525a17fb7a176ed8e6a3e2aa1
CPU threads: 8; OS: Windows 10.0 Build 22631; UI render: default; VCL: win
Locale: it-IT (it_IT); UI: en-GB
Calc: CL threaded

Version: 24.2.0.3 (X86_64) / LibreOffice Community
Build ID: da48488a73ddd66ea24cf16bbc4f7b9c08e9bea1
CPU threads: 8; OS: Windows 10.0 Build 22631; UI render: default; VCL: win
Locale: it-IT (it_IT); UI: en-GB
Calc: CL threaded

Kind Regards, Luca Evangelisti