Not sure if you can do this within Quartz Composer, but you can do this with a Cocoa app that is using an NSOpenGLView to display the QC composition.
:

/*
        Set up our openGL context.
        First set a pixel format.
        Then we init our GL Context.
        Set swapping for double buffers
        Finally associate with our view (which we have set in our IBOutlet)     
        */
        
NSOpenGLPixelFormatAttribute attributes[] = {NSOpenGLPFAAccelerated, NSOpenGLPFANoRecovery, NSOpenGLPFADoubleBuffer, NSOpenGLPFADepthSize, 24, 0};
        GLint swapInterval = 1;
        
v001GLPixelFormat = [[NSOpenGLPixelFormat alloc] initWithAttributes:attributes];
        
v001GLContext = [[NSOpenGLContext alloc] initWithFormat:v001GLPixelFormat shareContext:nil];

[v001GLContext setValues:&swapInterval forParameter:NSOpenGLCPSwapInterval];

        [v001GLContext setView:v001View];
        

In the code above you would set GLint swapInterval = 0;

I tested this with my in progress app and it did not break anything obvious.

On Feb 26, 2008, at 1:22 PM, Michael Diehr wrote:

The secret option to disable VBL sync can give a massive increase in performance in the case when you have a single QC composition stretched across two screens, which is an odd but fairly common configuration for some QC video art pieces. Disabling VBL leads to image tearing, which is visually unappealing depending on the content being displayed.

Question -- is it possible to disable VBL on a per-screen basis inside QC? In many cases, screen #1 is a UI screen not visible to the public on which VBL can be safely ignored, whereas screen #2 is the performance screen where syncing with VBL would be nice.
_______________________________________________
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/doktorp%40mac.com

This email sent to [EMAIL PROTECTED]

 _______________________________________________
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]

Reply via email to