Opened 7 years ago

Last modified 4 years ago

#8337 new enhancement

Icons screensaver sucking too much CPU?

Reported by: humdinger Owned by: korli
Priority: normal Milestone: R1
Component: Add-Ons/Screen Savers Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

This is hrev43696.

I love the screensaver "Icons". But judging from ActivityMonitor it seems to suck a bit too much CPU for what it is doing. Between 15 and 20%, I'd say. I have a Core2Duo, 2ghz, 2gb RAM and a supported Nvidia GForce 7600 GO in this notebook.

Can anyone see an easy optimization of the code?

Attachments (2)

Icons-screensaver_activity.png (92.3 KB) - added by humdinger 5 years ago.
ActivityMonitor log when Icons saver is active
Icons-screensaver_activity_Power-Saving.png (92.9 KB) - added by humdinger 5 years ago.
...with scheduler setting "Power saving"

Download all attachments as: .zip

Change History (7)

comment:1 Changed 7 years ago by axeld

Not having looked at the code, the easiest option would always be to lower the frame rate.

comment:2 Changed 5 years ago by jscipione

Humdinger, can you retest this on your machine on a revision sometime after hrev46759?

On a virtual machine I'm seeing minimal activity above baseline when running Icons.

comment:3 Changed 5 years ago by humdinger

I captured the time the Icons screensaver is active with ActivityMonitor, see the attached screenshot. The white horizontal line is the 50% mark. So it seems to vary between 25% and 50%. I guess the peaks is where the icon fading takes place. This is with hrev46974.

ActivityMonitor log when Icons saver is active

Last edited 5 years ago by humdinger (previous) (diff)

Changed 5 years ago by humdinger

ActivityMonitor log when Icons saver is active

comment:4 Changed 5 years ago by humdinger

The above was with default scheduler setting in ProcessController, i.e. "Low latency".
Here's the same capture with "Power saving" (which BTW tends to freeze my machine sooner or later...):

...with scheduler setting "Power saving"

Changed 5 years ago by humdinger

...with scheduler setting "Power saving"

comment:5 Changed 4 years ago by pulkomandy

I don't think we can do better. Alpha blending pictures in software is a cosly operation. as axel says, it would be nice to have an option in the screensaver settings to change the framerate.

Note: See TracTickets for help on using tickets.