Re: Leak when "drawing too fast"
Re: Leak when "drawing too fast"
- Subject: Re: Leak when "drawing too fast"
- From: Andreas Mayer <email@hidden>
- Date: Tue, 30 Jul 2013 15:20:59 +0200
Am 26.07.2013 um 12:41 schrieb Uli Kusterer <email@hidden>:
>> Since I can use Core Animation, that is obviously the better solution. It also makes my application look less power hungry - because now it is the WindowServer doing the drawing and eating cpu. ;)
>
> Not sure I follow your reasoning here. The Window server only manages layers and triggers redraws. The actual drawing is still done by Quartz in your process.
Ops. Missed this.
I'm essentially just drawing once and then moving bitmaps around. Before, I was redrawing the bitmaps at their new positions manually, which wasn't too bad since the system seems to optimize that case already. Now the window server is doing the moving around. My CPU is down to around 1% most of the time while the window server's is up by about 3,5%.
Andreas
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden