Bug 484317 - Unoptimized Backgrounds Have Very Slow Loading Speed
Summary: Unoptimized Backgrounds Have Very Slow Loading Speed
Status: RESOLVED DUPLICATE of bug 474862
Alias: None
Product: Plasma Workspace Wallpapers
Classification: Plasma
Component: general (show other bugs)
Version: 6.0.2
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-23 12:41 UTC by bugreporting
Modified: 2024-05-03 21:17 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Optimized Backgrounds (Light Version) (3.02 MB, application/zip)
2024-03-23 12:41 UTC, bugreporting
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bugreporting 2024-03-23 12:41:15 UTC
Created attachment 167652 [details]
Optimized Backgrounds (Light Version)

SUMMARY
***
Backgrounds serve triple purpose and have to be loaded three times:
1. as login screen (SDDM);
2. as wallpaper;
3. as lock screen.

Unoptimized backgrounds are:
a) too big - take too much space on the drive;
b) too big - too slow to read from the disk due to size;
c) too slow too decode - both: due to not being designed for decoding speed and simply because too much data has to be read from the disk.
***

STEPS TO REPRODUCE
1. copy the content of "/usr/share/wallpapers/Next/contents/" to your "/home/user/Pictures";
2. measure loading speed of the biggest file;
3. compare the size and the loading speed against the attached optimized backgrounds.

OBSERVED RESULT
1. 7.3 times too much space taken by the unoptimize background (23.2MB/3MB=7.73x);
2. much slower loading/reading speed- decoding speed plus big file to read (measurements depend on your computer).

EXPECTED RESULT
Substitute backgrounds that are used for SDDM (login), lock screen and wallpapers with their optimized attatched counterparts.

SOFTWARE/OS VERSIONS
KDE Plasma Version: 6.0.2
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Graphics Platform: X11
Graphics Processor: Intel HD

ADDITIONAL INFORMATION
Optimizations for attached backgrounds:
a) encoded with increased bit depth for riddance of compression artifacts;
b) encoded with advance quantization mode;
c) encoded with bias towards sharpness;
d) encoded with enabled deltas in chroma planes;
e) encoded with ssim tuning optimization algorithm;
f) encoded with increased color space (for high quality IPS LCDs and OLEDs).

Size reduction:
a) light backgrounds: 23.2MB/3MB=7.73x
b) dark background:   25.8MB/3.6MB=7.17x

a) optimized backgrounds (light version): https://upload.adminforge.de/r/FfXpzDjbeq#EELsZxBMHDZ5JrO3CvRJyuU+MSFZDaZUrWyF9FkwuZw=
Expiration: Monday, April 22, 2024 2:25 PM
b) optimmized backgrounds (dark version): https://upload.adminforge.de/r/_xfQU2PoBk#xQiRiyXMtrJtkp5L/VfnEINUzSbf44y239GJjHICpBU=
Expiration: Monday, April 22, 2024 2:26 PM
Comment 1 Nate Graham 2024-05-03 21:17:35 UTC
Optimizing the images is probably a good idea. We already have a bug report requesting this (Bug 474862) so I'm going to mark it as a duplicate of that.

I appreciate the work you did to optimize these wallpapers, but unfortunately it's too late to use them since the .png versions are already live in the wild. We'd have to commit to changing the file format for the next feature release when there's a new wallpaper.

*** This bug has been marked as a duplicate of bug 474862 ***