|
From: Mikey <im...@be...> - 2005-07-29 06:08:39
|
The reason I added this code in the first place was to correct
tearing that was occurring while rotating the camera. However, in
the event that it does adversely affect someone's use of Quesa,
perhaps it can be added as a field in the TQ3MacDrawContextData
structure with its default set to zero. If someone overrides the
default, then retrace synchronization could be enabled as I described.
On 29-Jul-2005, at 1:58 AM, James W. Walker wrote:
>
> 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?
|