From 8a9fd1eff21af4abe210fb4f5abbbb6921d15989 Mon Sep 17 00:00:00 2001 From: Giles Atkinson <“gatk555@gmail.com”> Date: Tue, 7 Jan 2025 14:04:05 +0000 Subject: [PATCH] Using XFlush() instead of XSync() avoids a round trip to the X server on each call to DevUpdate(). That speeds plotting when using XQuartz on Macintosh and makes iplot useable there. --- src/frontend/plotting/x11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/plotting/x11.c b/src/frontend/plotting/x11.c index ca468cd24..5a18939d9 100644 --- a/src/frontend/plotting/x11.c +++ b/src/frontend/plotting/x11.c @@ -894,7 +894,7 @@ int X11_Update(void) { if (X11_Open) - XSync(display, 0); + XFlush(display); return 0; }