|
Q: Which processor will Core Image use for rendering, and how can I specify it?A: Core Image can either use the system's CPU or an ARB fragment-capable GPU for rendering. Unless specified, Core Image will use a simple set of rules to determine the best processor for rendering on the current system. Table 1 lists the rules and the order in which they are evaluated. Table 1: Rules, in order, that Core Image uses to determine the best processor for rendering
Note: By default, Core Image uses the CPU for rendering on systems with a GeForce 5200 series card because, for most benchmarks, the 5200 can be slower than the CPU on currently shipping hardware. Developers may want to use a processing unit other then the default for a number of reasons, such as to:
To tell Core Image which processor to use for rendering, use the Listing 1: Creates a Core Image context that will always use the CPU for rendering. CIContext * CPUonlyCIContextFromCGContext(CGContextRef cgContext) { NSDictionary * contextOptions = [NSDictionary dictionaryWithObjectsAndKeys: [NSNumber numberWithBool: YES],kCIContextUseSoftwareRenderer,nil]; return [CIContext contextWithCGContext:cgContext options: contextOptions]; } Document Revision History
Posted: 2005-08-16 |
|