|
From: Lane R. <la...@if...> - 2005-07-30 01:02:28
|
using a separate thread would not gain anything. (However it could gain
you some with the sync turned off!). This limit is due specifically to
syncing with the refresh rate, but in Mac OS X often is only 1/2 the
rate. In theory you should be able to run at the refresh rate (typically
60-75hz). The 25hz rate could also be due to running on a LCD (which do
not have refresh rates, but fake it).
Typically this choice is made whenever the screen is setup, at startup
time and whenever the screen setup is changed via prefs in the
application/game.
on Fri, Jul 29, 2005 Mikey may have said:
>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)
Lane Roathe
President Ideas From the Deep <http://www.ifd.com>
___________________________________________________________________
If progress means moving forward, what does congress mean?
|