Bug 113791 - Slow scrolling with multiple animated gifs
Summary: Slow scrolling with multiple animated gifs
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.1.0.4 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, perf, regression
Depends on:
Blocks: Writer-Images
  Show dependency treegraph
 
Reported: 2017-11-12 19:17 UTC by Telesto
Modified: 2024-05-03 12:24 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Bibisect log (4.39 KB, text/plain)
2017-11-12 19:22 UTC, Telesto
Details
Bibisect log 2 (3.08 KB, text/plain)
2017-11-12 19:27 UTC, Telesto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2017-11-12 19:17:44 UTC
Description:
Slow scrolling with multiple animated gifs

Steps to Reproduce:
1. Open attachment 120884 [details]
2. Scroll up and down -> Screen is tearing a bit. CPU usage for background processing is also a bit higher compared to older versions.


Actual Results:  
Screen is tearing a bit while scrolling and higher load for background processing

Expected Results:
Something similar to LibO 4.0.0.3


Reproducible: Always


User Profile Reset: No



Additional Info:
Found in
Version: 6.0.0.0.alpha1+
Build ID: b3f1d199a72ce87cb65ddaeac922564f57da6a4d
CPU threads: 4; OS: Windows 6.3; UI render: default; 
TinderBox: Win-x86@42, Branch:master, Time: 2017-11-06_00:10:53
Locale: nl-NL (nl_NL); Calc: C


User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0
Comment 1 Telesto 2017-11-12 19:22:38 UTC
Created attachment 137705 [details]
Bibisect log

Regression introduced by:

commit 44fb0ceeb98f45bc301d021c11af2c13f051bd4b
Author:     Armin Le Grand <alg@apache.org>
AuthorDate: Mon Oct 29 16:20:25 2012 +0000
Commit:     Caolán McNamara <caolanm@redhat.com>
CommitDate: Thu May 9 16:35:40 2013 +0100
    
Resolves: #i121233# Added bitmap scaling methods BMP_SCALE_SUPER
    
added from symphony, also BMP_SCALE_LANCZOS, BMP_SCALE_BICUBIC,
BMP_SCALE_BILINEAR and BMP_SCALE_BOX.
    
Changed defaults for internal scalings, enhanced PDF export when reduched DPI
is used, added BMP_SCALE_BESTQUALITY and BMP_SCALE_FASTESTINTERPOLATE as new
default for Bitmap::Scale
Comment 2 Telesto 2017-11-12 19:27:32 UTC
Created attachment 137706 [details]
Bibisect log 2

FYI: There is also a small increase in CPU usage (background processing from 5 to 12%) after:

Author: Matthew Francis <mjay.francis@gmail.com>
Date:   Fri Sep 18 11:09:32 2015 +0800

source-hash-a7cc0faeff0f02d82b9cad2a95359f73cc871e8a
    
commit a7cc0faeff0f02d82b9cad2a95359f73cc871e8a
Author:     Noel Power <noel.power@suse.com>
AuthorDate: Fri May 3 10:24:33 2013 +0100
Commit:     Noel Power <noel.power@suse.com>
CommitDate: Thu May 9 14:11:19 2013 +0100
    
support Shape.Alternative
Comment 3 Buovjaga 2017-11-15 14:38:07 UTC
Confirmed.

Arch Linux 64-bit
Version: 6.0.0.0.alpha1+
Build ID: 17cfe6e25d479428de308c22fcd218dcf8827840
CPU threads: 8; OS: Linux 4.13; UI render: default; VCL: kde4; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group
Built on November 15th 2017
Comment 4 Telesto 2018-03-01 14:56:33 UTC Comment hidden (obsolete)
Comment 5 Volga 2018-05-20 06:19:50 UTC Comment hidden (obsolete)
Comment 6 Xisco Faulí 2018-06-05 19:23:22 UTC
Adding Cc: to Armin Le Grand
Comment 7 QA Administrators 2019-06-06 02:55:19 UTC Comment hidden (obsolete)
Comment 8 QA Administrators 2021-06-06 05:24:16 UTC Comment hidden (obsolete)
Comment 9 steve 2021-07-14 09:43:07 UTC
Scrolling is still slow, gifs are displayed in wrong colors e.g. black background and CPU usage increases.

Version: 7.1.4.2 / LibreOffice Community
Build ID: a529a4fab45b75fefc5b6226684193eb000654f6
CPU threads: 8; OS: Mac OS X 10.16; UI render: default; VCL: osx
Locale: de-DE (de_DE.UTF-8); UI: en-US
Calc: threaded
Comment 10 Buovjaga 2021-12-07 11:42:41 UTC
Scrolling still choppy.

Version: 7.4.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 3a61cce54277fd12570103a191c50d9b37ef3dd3
CPU threads: 2; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: fi-FI (fi_FI); UI: en-US
Calc: threaded

Version: 7.4.0.0.alpha0+ / LibreOffice Community
Build ID: e01854cd8f0c20c57d7e78103834bd806ead3cd9
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: kf5 (cairo+xcb)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Comment 11 Telesto 2021-12-07 12:34:50 UTC
(In reply to Buovjaga from comment #10)
> Scrolling still choppy.
> 

The big question is if such a document should be taken seriously..
For stress testing purposes it valid, but not assuming someone seriously want's to fix this for Writer. If it would be Impress where animations are more common, OK.
Comment 12 Michael Warner 2021-12-07 13:55:59 UTC
Merely having this document results in LO CPU utilization around 60% in:

Version: 7.4.0.0.alpha0+ / LibreOffice Community
Build ID: e9332dcdc8f2ea268d1b17c73d43a8834cf75365
CPU threads: 10; OS: Mac OS X 12.0.1; UI render: Skia/Metal; VCL: osx
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 13 Roman Kuznetsov 2021-12-07 14:17:03 UTC
Scrolling still choppy.

Version: 7.4.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 3a61cce54277fd12570103a191c50d9b37ef3dd3
CPU threads: 8; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: ru-RU (ru_RU); UI: ru-RU
Calc: threaded
Comment 14 Armin Le Grand (allotropia) 2022-01-05 10:16:15 UTC
This commit was developed for another code base, and not merged by me. For complex changes like this, side-effects are to be expected; sadly I dont't have the cycles to deal with all the fallout. Un-Ccing myself for the while.
Comment 15 paulystefan 2022-06-16 14:09:15 UTC
See old bug 96143

You are lucky now, because it does not run or very slow before 7.2.


Workaround: animation pictures running deactivate in options.

Then you can work fast.

Microsoft Office does not activate Animation Pictures in working mode, only in presentation mode.
Comment 16 Buovjaga 2024-05-03 12:24:28 UTC
Doesn't seem slow, so let's close

Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 3f2d56d486da2006e24444cfa6f2f63700a14fae
CPU threads: 8; OS: Linux 6.8; UI render: default; VCL: gtk3
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded