Bug 97997 - Draw: Performance of zooming in and out is bad, if anti-aliasing is on.
Summary: Draw: Performance of zooming in and out is bad, if anti-aliasing is on.
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
5.2.0.0.alpha0+
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: perf
Depends on:
Blocks:
 
Reported: 2016-02-19 04:47 UTC by Yousuf Philips (jay) (retired)
Modified: 2020-11-13 18:33 UTC (History)
2 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 Yousuf Philips (jay) (retired) 2016-02-19 04:47:58 UTC
Steps:
1) Open Draw
2) Using your mouse wheel and Ctrl zoom and and out repeatedly
3) Notice the huge spike in CPU usage

For me, my CPU jumped from 5% to 75% just by zooming in and out on a blank page. Testing the same in Writer it would only go to a max of 25%. Wanted to include a screencast, but the screencast app was eating up a huge amount of CPU for the recording. :D

Version: 5.2.0.0.alpha0+
Build ID: 72720ac9b934af6f84111ec694fa46555d10a7bd
CPU Threads: 2; OS Version: Linux 4.2; UI Render: default; 
TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:master, Time: 2016-02-17_19:06:34
Locale: en-US (en_US.UTF-8)
Comment 1 Buovjaga 2016-02-26 18:00:24 UTC
No spike on Win, have to test on Linux

Win 7 Pro 64-bit Version: 5.2.0.0.alpha0+
Build ID: ef02de2698d90fd874bddf3146165cbe85487bc5
CPU Threads: 4; OS Version: Windows 6.1; UI Render: default; 
TinderBox: Win-x86@39, Branch:master, Time: 2016-02-19_23:40:50
Locale: fi-FI (fi_FI)
Comment 2 Yousuf Philips (jay) (retired) 2016-02-28 22:51:10 UTC
So i tried it on my laptop which has both Windows 7 and Mint XFCE 17.2 and the performance wasnt as bad as the CPU would only go up to a max of around 30 to 40 percent.

Version: 5.2.0.0.alpha0+
Build ID: 6d5eeb6af585ae525645d844cbbd56e76678a0af
CPU Threads: 2; OS Version: Windows 6.1; UI Render: default; 
TinderBox: Win-x86@39, Branch:master, Time: 2016-02-22_00:12:04
Locale: en-US (en_US)

Version: 5.2.0.0.alpha0+
Build ID: 0b1da98da44bc9acb9e42a5cd1842adf9d82a415
CPU Threads: 2; OS Version: Linux 3.13; UI Render: default; 
TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:master, Time: 2015-12-22_05:54:37
Locale: en-US (en_US.UTF-8)
Comment 3 Buovjaga 2016-03-01 19:06:16 UTC
Well, if I really scrub the mousewheel back and forth like my life depended on it, I can get it to use 57-58% CPU max.. or hover at 51%.
But if I scroll in a more laidback way, it's like 20-30% (still pretty vigorous scrolling).

Version: 5.2.0.0.alpha0+
Build ID: 8fab3bf91331a4ac9e3b8f44a46f579dbf7aeafb
CPU Threads: 8; OS Version: Linux 4.4; UI Render: default; 
Locale: fi-FI (fi_FI.UTF-8)
Comment 4 ZSerg 2016-08-11 08:39:07 UTC
I confirm the very slow zoom and slide. Top shows that 'Xorg' process cpu usage rises up to 99%. 

Version: 5.2.0.4
Build ID: 066b007f5ebcc236395c7d282ba488bca6720265
CPU Threads: 2; OS Version: Linux 3.16; UI Render: default; 
Locale: ru-RU (en_GB.UTF-8)
Comment 5 ZSerg 2016-08-11 08:46:29 UTC
The performance become much better if I turn off Anti-Aliasing:
Tools/Options/LibreOffice.org/View
setting: Usde anti-aliasing


Version: 5.2.0.4
Build ID: 066b007f5ebcc236395c7d282ba488bca6720265
CPU Threads: 2; OS Version: Linux 3.16; UI Render: default; 
Locale: ru-RU (en_GB.UTF-8)
Comment 6 Buovjaga 2016-08-11 09:06:33 UTC
ZSerg: would you like to join the QA team? Info: https://wiki.documentfoundation.org/QA/ru
You can meet us on IRC: https://wiki.documentfoundation.org/QA/IRC
Comment 7 QA Administrators 2017-09-01 11:15:43 UTC Comment hidden (obsolete)
Comment 8 QA Administrators 2019-12-03 14:57:41 UTC Comment hidden (obsolete)
Comment 9 Buovjaga 2020-11-13 18:33:39 UTC
(In reply to Buovjaga from comment #3)
> Well, if I really scrub the mousewheel back and forth like my life depended
> on it, I can get it to use 57-58% CPU max.. or hover at 51%.
> But if I scroll in a more laidback way, it's like 20-30% (still pretty
> vigorous scrolling).
> 
> Version: 5.2.0.0.alpha0+
> Build ID: 8fab3bf91331a4ac9e3b8f44a46f579dbf7aeafb
> CPU Threads: 8; OS Version: Linux 4.4; UI Render: default; 
> Locale: fi-FI (fi_FI.UTF-8)

Now I get like 32% max with super intense back and forth scrolling (unrealistic) and the anti-aliasing setting makes no difference.

I think we should close this.