Optimizing Screensaver
Optimizing Screensaver
- Subject: Optimizing Screensaver
- From: Jurjan Dijkstra <email@hidden>
- Date: Fri, 16 Jan 2004 22:11:29 +0100
Hi list,
I'm making a screensaver (like everybody has done at one time or
another I guess).
My problem is that on 'slower' machines it's taking up to 40%
processor-utilization.
( found by ssh'ing into the machine and using top).
I would like to lower that percentage.
After all, all I'm doing is displaying some text (max about 7 small lines)
(using: [[NSString stringWithFormat:@"%@",[teksten
objectAtIndex:i]] drawAtPoint:NSMakePoint(x_pos, y_pos[i])
withAttributes:attribuutjes];)
and some small picts
(using: [ster[1] compositeToPoint:NSMakePoint((([self
bounds].size.width - (grootte.height * 5)) / 2) + (i *
grootte.height), y_pos[[teksten count]]) fromRect:NSMakeRect( 0, 0,
grootte.height, grootte.height ) operation:NSCompositeSourceOver];)
and appleevents (querying iTunes (what else....))
I have NO idea where to start, and furthermore: how DOES one analyse
a screensaver while running??
After all, a screensaver (by definitiion) only runs when the user
isn't doing anything.
Does anybody have an idea on how to accomplish this??
Thanks.
Jurjan
--
--------------------------------------------------------------------------------
Jurjan Dijkstra
Snailmail: E-mail: Phone:
Chathams 57 email@hidden +31 (0)30-2672276 (Home)
3524 JS Utrecht email@hidden +31 (0)6-54626455 (Mobile)
The Netherlands
Website:
http://www.xs4all.nl/~jurjan0/
-----------------------------------------------------------------------------
Virtual Pet Rock
http://www.virtualpetrock.nl/
The pet that rocks the world of Mac OS X
Visit our shop:
http://www.cafeshops.com/vpr/
-----------------------------------------------------------------------------
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.