Bug 409997 - Very slow performance
Summary: Very slow performance
Status: RESOLVED NOT A BUG
Alias: None
Product: Oxygen
Classification: Plasma
Component: style (show other bugs)
Version: 5.16.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-19 13:06 UTC by BRULE Herman
Modified: 2019-08-06 00:22 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description BRULE Herman 2019-07-19 13:06:22 UTC
SUMMARY


STEPS TO REPRODUCE
1. compile and start https://github.com/alphaonex86/CatchChallenger/tree/master/tools/animatedbackground
2. look the CPU used with oxygen theme
3. look the CPU with other theme

OBSERVED RESULT
Oxygen use 15% of CPU

EXPECTED RESULT
Other theme use only 2% of CPU

Can you fix the performance please?
Comment 1 Christoph Feck 2019-08-05 20:21:55 UTC
Oxygen uses background gradients, which unfortunately are much slower to render compared to a flat background.
Comment 2 BRULE Herman 2019-08-05 21:34:04 UTC
I use too background gradient, via QPainter and no performance problem.
Comment 3 Christoph Feck 2019-08-05 22:29:51 UTC
A radial gradient? Linear gradients are much faster.
Comment 4 BRULE Herman 2019-08-06 00:22:42 UTC
Then you can QPainter on QPixmap to cache it, and update cache if the resolution change else just redraw the QPixmap.