Yield before glFinish to lighten load with frame sync. Helps cases where glFinish is a busy loop.

This commit is contained in:
Brandon Wright 2010-12-25 18:30:09 -06:00
parent a7d6cb6164
commit b8bdd151a2
1 changed files with 2 additions and 0 deletions

View File

@ -923,6 +923,8 @@ S9xOpenGLDisplayDriver::gl_swap (void)
if (config->sync_every_frame)
{
usleep (0);
glXWaitX ();
glFinish ();
}