be less agressive performance-wise but clear up some gl sync issues

that have been lurking.



SVN revision: 52414
This commit is contained in:
Carsten Haitzler 2010-09-18 13:49:56 +00:00
parent fa5b80b879
commit 8df657a51a
1 changed files with 3 additions and 1 deletions

View File

@ -592,7 +592,7 @@ eng_output_redraws_next_update_push(void *data, void *surface __UNUSED__, int x
// printf("Error: eglWaitNative(EGL_CORE_NATIVE_ENGINE) fail.\n");
// }
#else
glXWaitGL();
glXWaitX();
#endif
//x// printf("frame -> push\n");
}
@ -618,6 +618,7 @@ eng_output_flush(void *data)
else
eglSwapInterval(re->win->egl_disp, 0);
eglSwapBuffers(re->win->egl_disp, re->win->egl_surface[0]);
eglWaitGL();
#ifdef FRAMECOUNT
double t1 = get_time();
printf("%1.5f\n", t1 - t0);
@ -651,6 +652,7 @@ eng_output_flush(void *data)
)
{
glXSwapBuffers(re->win->disp, re->win->win);
glXWaitGL();
}
else
{