[gtk/fix-glx-slowness: 1/2] x11: Fix glx slowness
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/fix-glx-slowness: 1/2] x11: Fix glx slowness
- Date: Fri, 11 Sep 2020 01:18:47 +0000 (UTC)
commit 24f4db081be359f60a26042bd513849b61c6813e
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Sep 10 17:53:24 2020 -0400
x11: Fix glx slowness
Without this glFinish() call, I see glxMakeCurrent()
block for up to one second. No idea why, and it does
not make any sense to me that glFinish() would help
for this.
gdk/x11/gdkglcontext-x11.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/gdk/x11/gdkglcontext-x11.c b/gdk/x11/gdkglcontext-x11.c
index ec0bb2f454..ae5c7f73a7 100644
--- a/gdk/x11/gdkglcontext-x11.c
+++ b/gdk/x11/gdkglcontext-x11.c
@@ -1483,6 +1483,7 @@ gdk_x11_display_make_gl_context_current (GdkDisplay *display,
g_message ("Making GLX context %p current to drawable %lu",
context, (unsigned long) drawable));
+ glFinish ();
if (!glXMakeContextCurrent (dpy, drawable, drawable,
context_x11->glx_context))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]