Opened 13 years ago

Last modified 10 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:
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 11 years ago.
ActivityMonitor log when Icons saver is active
Icons-screensaver_activity_Power-Saving.png (92.9 KB ) - added by humdinger 11 years ago.
...with scheduler setting "Power saving"

Download all attachments as: .zip

Change History (7)

comment:1 by axeld, 13 years ago

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

comment:2 by jscipione, 11 years ago

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 by humdinger, 11 years ago

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.

Version 0, edited 11 years ago by humdinger (next)

by humdinger, 11 years ago

ActivityMonitor log when Icons saver is active

comment:4 by humdinger, 11 years ago

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"

by humdinger, 11 years ago

...with scheduler setting "Power saving"

comment:5 by pulkomandy, 10 years ago

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.