| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
I'm writing some pretty time-critical code which must execute a CopyBits() to the front buffer immediately after a CGDisplaySetPalette() (which conveniently seems to block until the CLUT load has completed). Unfortunately, some uptime() calls indicate that the return from CGDisplaySetPalette() occurs at widely varying delays after the start of the raster scan. I've already tried thread_policy_set() to THREAD_TIME_CONSTRAINT_POLICY, but that doesn't seem to help. I'm thinking that bumping up my process priority using SetPriority() might help. Unfortunately SetPriority() to a value less than 0 returns an error, implying that my program isn't executing with super-user priviledges. I'm new to the unix-ness of Mac OS X. Could someone please nudge me in the direction of better real-time performance? Any help would be appreciated.
| 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.