forked from enlightenment/efl
disable all the waiting on gl - squeeze some more performance out of gl.
This commit is contained in:
parent
8254bbc5e3
commit
e7349e8005
|
@ -1395,14 +1395,14 @@ eng_output_redraws_next_update_push(void *data, void *surface EINA_UNUSED, int x
|
||||||
// this is needed to make sure all previous rendering is flushed to
|
// this is needed to make sure all previous rendering is flushed to
|
||||||
// buffers/surfaces
|
// buffers/surfaces
|
||||||
// previous rendering should be done and swapped
|
// previous rendering should be done and swapped
|
||||||
if (!safe_native) eglWaitNative(EGL_CORE_NATIVE_ENGINE);
|
//xx if (!safe_native) eglWaitNative(EGL_CORE_NATIVE_ENGINE);
|
||||||
// if (eglGetError() != EGL_SUCCESS)
|
// if (eglGetError() != EGL_SUCCESS)
|
||||||
// {
|
// {
|
||||||
// printf("Error: eglWaitNative(EGL_CORE_NATIVE_ENGINE) fail.\n");
|
// printf("Error: eglWaitNative(EGL_CORE_NATIVE_ENGINE) fail.\n");
|
||||||
// }
|
// }
|
||||||
#else
|
#else
|
||||||
// previous rendering should be done and swapped
|
// previous rendering should be done and swapped
|
||||||
if (!safe_native) glXWaitX();
|
//xx if (!safe_native) glXWaitX();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1491,7 +1491,7 @@ eng_output_flush(void *data, Evas_Render_Mode render_mode)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
eglSwapBuffers(re->win->egl_disp, re->win->egl_surface[0]);
|
eglSwapBuffers(re->win->egl_disp, re->win->egl_surface[0]);
|
||||||
if (!safe_native) eglWaitGL();
|
//xx if (!safe_native) eglWaitGL();
|
||||||
if (re->info->callback.post_swap)
|
if (re->info->callback.post_swap)
|
||||||
{
|
{
|
||||||
re->info->callback.post_swap(re->info->callback.data, re->evas);
|
re->info->callback.post_swap(re->info->callback.data, re->evas);
|
||||||
|
|
Loading…
Reference in New Issue