| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
|
On a side note for that code, NEVER EVER Use CGContextSelectFont() for any real time imaging under 10.3 / 10.4 +/ - 10.5 (it's "better" in 10.5, but it still uses up way too many CPU cycles compared to older obsolete text drawing API's). If your drawing text into a CG Context, your wasting an ungodly amount of CPU time in the call to CGContextSelectFont(), which has to be set each time you get a context. By ungodly, I mean well over 60% of the CPU usage (multi core cores PPC / x86) was being used under 10.3 / 10.4 just for that single function when blitting 30 fps ARGB32 video to screen. We had to switch back to ATSUI text drawing to work around it. And the fact that there are no retained font settings for a CGContext (unlike QuickDraw / GWorlds) means it has to be set each time you draw, so there is no way to work around it except abandon it if you care about performance. HTH.. Milton J. Aupperle President ASC - Aupperle Services and Contracting Mac Software (Drivers, Components and Application) Specialist #1005 - 815 14th Avenue. S.W. Calgary Alberta T2R0N5 1-(403)-229-9456 www.outcastsoft.com On 14-Jun-08, at 12:08 PM, Jean-Daniel Dupas wrote:
|
_______________________________________________ Do not post admin requests to the list. They will be ignored. QuickTime-API mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/quicktime-api/email@hidden This email sent to email@hidden
| References: | |
| >Efficient decoding - replace GetMoviePict? (From: Russ <email@hidden>) | |
| >Re: Efficient decoding - replace GetMoviePict? (From: Jean-Daniel Dupas <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.