Hello,

So I have set up a QuartzComposer to render in an OpenGL and I've set the render setup with a timer.

If I do the following line, it is fine,

_renderTimer = [[NSTimer scheduledTimerWithTimeInterval:(0 / (NSTimeInterval)kRendererFPS) target:self selector:@selector (_render:) userInfo:nil repeats:YES] retain];
        
However, if I do the following line,

_renderTimer = [[NSTimer scheduledTimerWithTimeInterval:(3+ 0 / (NSTimeInterval)kRendererFPS) target:self selector:@selector (_render:) userInfo:nil repeats:YES] retain];
        
Then the rendering is delayed approx. 3 seconds and the frame rate is gravely slow... It might update twice every three seconds... However the first line is fine, to me it seems around 40fps but w/e... Can I get the timer to delay 3 seconds and still run at the same rate?

Is the second line delaying the rendering because it fires a lot slower than the first line?

Can anyone explain to me what I am doing by adding 3 to that equation?

Sorry I am just in need of explanations.

Thanks,
Keehun Nam
 _______________________________________________
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