Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Very low frames per second?



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@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.