Bug 105633 - Increased CPU usage while hovering over a drop-down menu with OpenGL enabled
Summary: Increased CPU usage while hovering over a drop-down menu with OpenGL enabled
Status: RESOLVED WONTFIX
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: graphics stack (show other bugs)
Version:
(earliest affected)
5.0.2.2 release
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, perf, regression
Depends on:
Blocks: VCL-OpenGL
  Show dependency treegraph
 
Reported: 2017-01-31 08:59 UTC by Telesto
Modified: 2020-08-28 12:03 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2017-01-31 08:59:08 UTC
Description:
The CPU usage when hoovering over a drop-down menu has increased between LibO5.0.0.5 and LibO5.0.2.2 and is noticeable ever since. It probably also happens without OpenGL enabled, but is more noticeable with OpenGL enabled.

Steps to Reproduce:
1. Open Writer
2. Enable OpenGL (for best resuls) -> Options -> View
3. Click (for example) Menu -> Insert and hoover over the items within. Monitor CPU usage

Actual Results:  
CPU usage lies around the around 12-15% (but probably depending on system specs)

Expected Results:
CPU usage is around 4% on my system with Lib5.0.0.5


Reproducible: Always

User Profile Reset: No

Additional Info:
Found in:
Version: 5.4.0.0.alpha0+
Build ID: b41186a2fc49e440890b8c86e5367352ffaf9cd6
CPU Threads: 4; OS Version: Windows 6.19; UI Render: GL; 
TinderBox: Win-x86@42, Branch:master, Time: 2017-01-26_01:50:40
Locale: nl-NL (nl_NL); Calc: CL

and in
Version: 5.0.6.3
Build ID: 490fc03b25318460cfc54456516ea2519c11d1aa-GL
Locale: en-US (nl_NL)

and more prone in
Version: 5.0.2.2
Build ID: 37b43f919e4de5eeaca9b9755ed688758a8251fe-GL
Locale: en-US (nl_NL)

but not in
Version: 5.0.0.5
Build ID: 1b1a90865e348b492231e1c451437d7a15bb262b
Locale: en-US (nl_NL)


User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0
Comment 1 Telesto 2017-01-31 09:02:20 UTC
Setting to NEW. Baron did confirm already on IRC.
Comment 2 Telesto 2017-01-31 18:44:26 UTC
Nearly the same performance behavior can be found when resizing columns in Calc. Not quite sure if it's a dupe, but seems likely. Found in the same range. Not in LibO 5.0.0.5 but in 5.0.2.2 and up.

Steps to Reproduce:
1. Enable OpenGL (for best resuls) -> Options -> View
2. Open attachment 130789 [details] (it can also be done without)
3. Click between columns and keep resizing column width.
Comment 3 Aron Budea 2017-02-02 01:38:10 UTC Comment hidden (bibisection)
Comment 4 Aron Budea 2017-02-02 01:46:16 UTC
The increase of CPU usage started with the commit referenced below. Since this commit the usage goes up to ~20% for me (4-core AMD CPU, so about 80% of a core), while in the previous one it's only ~5-10%. I also get the impression this commit is connected to the current behavior that first a grey rectangle is shown in place of the menu, and the content is painted after a short, but noticeable delay.

The interseting thing is that this is a cleanup commit, and it never seems to have been backported into 5.0. Quite peculiar, I'd say.
Adding Cc: to Markus Mohrhard, please take a look.

https://cgit.freedesktop.org/libreoffice/core/commit/?id=7eb4c6921850a5a377f6aa42ce4af85b145da01c
author		Markus Mohrhard <markus.mohrhard@googlemail.com>	2015-06-04 15:39:48 (GMT)
committer	Markus Mohrhard <markus.mohrhard@googlemail.com>	2015-06-17 12:46:26 (GMT)
commit 7eb4c6921850a5a377f6aa42ce4af85b145da01c (patch)

"remove all traces of old device code"
Comment 5 QA Administrators 2019-03-14 03:52:14 UTC Comment hidden (obsolete)
Comment 6 Buovjaga 2020-08-28 12:03:24 UTC
As Skia with Vulkan will replace OpenGL UI rendering on all platforms, it does not make sense to keep OpenGL UI reports open.

Details about Skia: https://www.collaboraoffice.com/success-story/implementing-vulkan-capable-libreoffice-user-interface-using-the-skia-library/