|
From: Mikey <im...@be...> - 2005-07-29 05:12:04
|
I just noticed that Quesa on the Mac is doing its double buffer
swapping without synchronizing with the vertical retrace of the
monitor. Adding the following code just before the end of
gldrawcontext_mac_new() seems to correct the problem:
// 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.
|