|
From: Mikey <im...@be...> - 2005-07-29 23:09:58
|
Do you think it would be possible to get around the frame rate
slowdown if you submit your geometry in a separate thread?
Also, should we consider the possibility that someone would want to
turn the synchronization on/off rapidly during rendering or would it
only be set once at the beginning of program execution?
On 29-Jul-2005, at 6:26 PM, Lane Roathe wrote:
> on Thu, Jul 28, 2005 James W. Walker may have said:
>>
>> On Jul 28, 2005, at 10:11 PM, Mikey wrote:
>>
>>> // Tell OpenGL to sync with the vertical retrace of the monitor.
>>> {
>>> const GLint syncEveryFrame = 1;
>>> aglSetInteger( glContext, AGL_SWAP_INTERVAL,
>>> &syncEveryFrame );
>>> }
>>>
>>> I didn't see any reference to this sort of thing in the archives so
>>> I'm not sure if it was omitted on purpose or if it was an
>>> oversight. If it was an oversight, I'd like see about getting it
>>> added to the actual CVS codebase.
>>
>> I looked this up in Apple docs, and while they say what the switch
>> does, there is no discussion of pros and cons. There must be some
>> cons, or Apple would have made it the default behavior, no?
>
> Pro: limitS tearing due to drawing faster than the screen can refresh
>
> Con: frame rate (typically 25fps max, sometimes more)
|