Bug 134324 - Scrolling is lagging when rendering images or tables (GDI-rendering)
Summary: Scrolling is lagging when rendering images or tables (GDI-rendering)
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.5.0 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: haveBacktrace, perf
Depends on:
Blocks: Smooth-Scroll
  Show dependency treegraph
 
Reported: 2020-06-26 15:54 UTC by sitnarf
Modified: 2024-08-07 15:23 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
Screencast 1 (25.46 MB, video/x-matroska)
2020-06-26 15:55 UTC, sitnarf
Details
File (619.10 KB, application/vnd.oasis.opendocument.text)
2020-06-29 12:46 UTC, sitnarf
Details
File with the issue (618.62 KB, application/vnd.oasis.opendocument.text)
2020-06-29 12:49 UTC, sitnarf
Details
Document with a table (703.47 KB, application/wps-office.docx)
2020-06-30 08:36 UTC, sitnarf
Details
Scrolling with a table (24.45 MB, video/x-matroska)
2020-06-30 08:36 UTC, sitnarf
Details
Perf flamegraph (416.68 KB, image/svg+xml)
2024-08-07 15:23 UTC, Buovjaga
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sitnarf 2020-06-26 15:54:18 UTC
Description:
The issue occurs both with both hardware acceleration enabled and disabled in the LO settings. Tested the latest nightly build, the issue persists.




Steps to Reproduce:
1.Create a file
2.Insert images
3.Scroll

Actual Results:
Lagging

Expected Results:
Smooth scrolling


Reproducible: Always


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
HP ZBook 15 G6
NVidia Quadro T2000
nvidia-driver-440

Version: 6.4.3.2
Build ID: 1:6.4.3-0ubuntu0.20.04.1
CPU threads: 12; OS: Linux 5.4; UI render: default; VCL: gtk3; 
Locale: en-US (en_US.UTF-8); UI-Language: en-US
Calc: threaded
Comment 1 sitnarf 2020-06-26 15:55:17 UTC
Created attachment 162430 [details]
Screencast 1
Comment 2 Telesto 2020-06-26 20:05:13 UTC Comment hidden (obsolete)
Comment 3 sitnarf 2020-06-29 12:45:53 UTC Comment hidden (obsolete)
Comment 4 sitnarf 2020-06-29 12:46:13 UTC Comment hidden (obsolete)
Comment 5 sitnarf 2020-06-29 12:49:55 UTC
Created attachment 162506 [details]
File with the issue
Comment 6 Telesto 2020-06-29 13:39:38 UTC
I confirm a slowdown scrolling around the image on Windows with GDI
Version: 6.4.0.0.beta1+ (x64)
Build ID: 20be5cd0bdc57d812bf34a2debfe48caa51de881
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: default; VCL: win; 
Locale: nl-NL (nl_NL); UI-Language: en-US
Calc: CL

and in 7.1 slightly faster)

FWIW, do you also have an table example (probably something different)
Comment 7 Telesto 2020-06-29 13:42:13 UTC
Also in 4.4.7.2

but not in
LibreOffice 3.5.7.2 
Build ID: 3215f89-f603614-ab984f2-7348103-1225a5
Comment 8 sitnarf 2020-06-30 08:36:00 UTC
Created attachment 162542 [details]
Document with a table
Comment 9 sitnarf 2020-06-30 08:36:37 UTC
Created attachment 162543 [details]
Scrolling with a table
Comment 10 sitnarf 2020-06-30 08:37:17 UTC Comment hidden (obsolete)
Comment 11 Telesto 2020-06-30 08:45:58 UTC
@Xisco
But of 2 bugs in 1.. The initial report I confirm on Win (GDI) Table scrolling is fine for me (Win). Would mind to give it a try 
https://bugs.documentfoundation.org/attachment.cgi?id=162542
Comment 12 Sarah 2021-10-12 11:27:35 UTC
I also get this problem, even when a document contains no images.  As I find LibreOffice much more accessible than Word, especially as it has drop-down menus, I really do not want to return to MS Word, but the poor rendering is becoming increasingly difficult.  

I don't understand why it should be doing this as I have a very good 4k graphics card and display, and have tried hardware acceleration, but the problem persisted.  

Sarah
Comment 13 Sophie Sipasseuth 2023-06-16 08:26:19 UTC
No repro

Version: 7.6.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: f97a7b965be154824e108802b386e3132b0a237a
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: fr-FR (fr_FR); UI: fr-FR
Calc: CL threaded
Comment 14 Telesto 2023-06-16 08:38:38 UTC
(In reply to Sophie Sipasseuth from comment #13)
I still repro with Skia disabled (so GDI mode)
Version: 7.6.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 389a8d52d9961f89c0b2847b30ee1ca59a8fdc80
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: default; VCL: win
Locale: nl-NL (nl_NL); UI: en-US
Calc: CL threaded

No issue with Skia/Raster on Windows
Comment 15 Sophie Sipasseuth 2023-06-16 11:27:58 UTC
Yes, it is true with Skia disabled, the scrollbar runs with jerks.
Comment 16 Buovjaga 2024-08-07 14:39:55 UTC
Not a regression, already seen in 3.5.0. Depends on the zoom level. Try single page view at 75%, no lag.
Comment 17 Buovjaga 2024-08-07 15:23:48 UTC
Created attachment 195759 [details]
Perf flamegraph

Scrolled past the image in attachment 162506 [details] and back again. Lots of time spent in cairo through drawinglayer.

Arch Linux 64-bit
Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: fb56e1e284925937eff4386a7e3655c0f3182640
CPU threads: 8; OS: Linux 6.10; UI render: default; VCL: kf6 (cairo+wayland)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: CL threaded
Built on 7 August 2024