I was noticing this in the Quartz Composer Custom Patch Programming Guide: "#import <OpenGL/CGLMacro.h>
Using CGLMacro.h improves performance. The inclusion of this statement allows Quartz Composer to optimize its use of OpenGL by providing a local context variable and caching the current renderer in that variable. *You should keep this statement even if your custom patch does not contain OpenGL code itself. *If your custom patch contains OpenGL code, you need to declare a local variable and set the current context to it." Is the part that I've put in bold true for all execution modes? Why is it that this improves performance if when the patch doesn't contain OpenGL code? Related to the last question (basically, the inverse), what happens if one forgets to do this that would cause bad performance?
_______________________________________________ Do not post admin requests to the list. They will be ignored. Quartzcomposer-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com This email sent to [email protected]

