Bug 154602 - Scrolling using keyboard very slow (GTK3) with 4K monitor
Summary: Scrolling using keyboard very slow (GTK3) with 4K monitor
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.3.1.3 release
Hardware: x86-64 (AMD64) Linux (All)
: medium trivial
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, perf, regression
: 153007 155217 155375 157830 (view as bug list)
Depends on:
Blocks: HiDPI GTK3 Scrolling-Performance
  Show dependency treegraph
 
Reported: 2023-04-04 12:36 UTC by Liudvikas
Modified: 2024-03-12 05:38 UTC (History)
7 users (show)

See Also:
Crash report or crash signature:


Attachments
Small CSV file that exhibits the bug on my computer (11.76 KB, text/csv)
2023-04-04 12:36 UTC, Liudvikas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Liudvikas 2023-04-04 12:36:38 UTC
Created attachment 186471 [details]
Small CSV file that exhibits the bug on my computer

When holding down navigation keys to quickly scroll through the document, scroll is very laggy and even continues for a while after I've released the key. On 1920x1080, only left/right is laggy, but on 4K external monitor it's much worse overall and up/down is affected too. 

I'm attaching a sample document, it's barely 200x30 cells big. 

Fedora Linux 37
Lenovo ThinkPad P1 Gen 3
Intel® Core™ i9-10885H × 16
Mesa Intel® UHD Graphics (CML GT2)
Gnome 43.3
X11
Comment 1 Buovjaga 2023-04-11 11:23:40 UTC
I notice a slight difference when I use GTK3 and move with the arrows (pressing and holding) left and right through the cells with content. I don't have a 4K screen.

The difference is too subtle for me to effectively perform a bibisect, so I suggest that you try it with the 7.5 repository (it seems to not be in 7.4, but you can try it as well): https://wiki.documentfoundation.org/QA/Bibisect/Linux

The slowness might be related to accessibility as it works only with GTK3 for now. I see in the console sometimes:

** (soffice:73597): WARNING **: 14:20:09.963: atk-bridge: get_device_events_reply: unknown signature

Arch Linux 64-bit, X11
Version: 7.5.2.2 (X86_64) / LibreOffice Community
Build ID: 50(Build:2)
CPU threads: 8; OS: Linux 6.2; UI render: default; VCL: gtk3
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
7.5.2-1
Calc: CL threaded
Comment 2 Liudvikas 2023-04-11 13:43:38 UTC
Installed 7.5.2.2 from an RPM on the official website, the bug persists :( exactly the same as reported AFAIK
Comment 3 Buovjaga 2023-04-11 13:45:43 UTC
If you need help in bibisecting, email me and I can guide you in a call.
Comment 4 Liudvikas 2023-04-11 13:47:01 UTC
Oh I see, you would like me to bibisect on my machine? I'll try and find the time then
Comment 5 Buovjaga 2023-05-16 16:25:07 UTC
*** Bug 155217 has been marked as a duplicate of this bug. ***
Comment 6 Telesto 2023-05-18 12:35:30 UTC
*** Bug 153007 has been marked as a duplicate of this bug. ***
Comment 7 Telesto 2023-05-18 12:36:28 UTC
*** Bug 155375 has been marked as a duplicate of this bug. ***
Comment 8 Telesto 2023-05-18 12:53:08 UTC
There are some bug reports about performance problems with Wayland. Others like bug 155375 comment 0 report no difference between x.org or Wayland. So might be caused by a 4k monitor or Wayland backend, or both.. Or maybe even something else
Comment 9 M. Knepper 2023-05-18 14:30:30 UTC
(In reply to Telesto from comment #8)
> There are some bug reports about performance problems with Wayland. Others
> like bug 155375 comment 0 report no difference between x.org or Wayland. So
> might be caused by a 4k monitor or Wayland backend, or both.. Or maybe even
> something else

I will test the 4k performance problem on Xorg sometime this week. I don't notice a difference between 1080p/1440p Wayland and Xorg - they're both very responsive. The problem seems to happen when the resolution is switched to something like 4k on Wayland.

We'll see if the problem persists on Xorg.
Comment 10 M. Knepper 2023-05-18 21:13:44 UTC
Played with LibreOffice (writer) at 4k on Xorg and i3wm. Same thing seems to happen. CPU usages spikes to 50% plus on a single thread/core for some reason.

Scrolling other applications like Firefox at 4k for example doesn't seem to push any particular CPU thread drastic usage levels.
Comment 11 Stéphane Guillou (stragu) 2023-10-24 18:49:07 UTC
Changing component to the whole of LibreOffice as two duplicates talk about Writer.
Comment 12 Timur 2023-11-21 12:57:40 UTC
Seems OK in 7.2. Repro with 4K in latest Linux bibisect 7.3 and 24.2. 
I used 100% scaling. Bug seen when scrolling over the bottom edge .
Bug 155217 seems a real dupe, others are for general slowness, to be checked.
Comment 13 Timur 2023-11-21 13:06:50 UTC
source 7c29b13ac67e3796b5998789371fa68acb01a260
author	Luboš Luňák <l.lunak@collabora.com>	Tue Jan 11 2022
committer	Caolán McNamara <caolanm@redhat.com>	Wed Jan 26 2022
avoid Xlib cairo surfaces for small virtual devices (bsc#1183308)

Luboš is not active anymore.
Comment 14 Stéphane Guillou (stragu) 2024-03-12 04:55:09 UTC
*** Bug 157830 has been marked as a duplicate of this bug. ***