Instance Property

multiThreaded

A Boolean value that determines whether OpenGL ES defers work to another thread.

Declaration

@property(getter=isMultiThreaded, nonatomic) BOOL multiThreaded;

Discussion

Set the value of this property to YES to enable multithreading in OpenGL ES. A multithreaded OpenGL ES context automatically creates a worker thread and transfers some of its calculations to that thread. When you enable multithreading on a multicore device, internal OpenGL ES calculations performed on the CPU act in parallel with your app, improving performance.

When the value of this property is NO (the default), OpenGL ES performs any CPU-based calculations for a command on the thread it was called from.

If the current device does not support multithreaded OpenGL ES, the value of this property is always NO—attempting to set the value to YES has no effect.