Add hint about turning on SHM on Sun

This commit is contained in:
John Lorentzson 2025-04-09 15:00:53 +02:00
parent 2c93c071d1
commit d562f588cf

View file

@ -69,6 +69,7 @@ bool WindowBackend_Software_CreateWindow(const char *window_title, size_t screen
Backend_PrintInfo("Using X shared memory extension for higher image transfer speeds.\n"); Backend_PrintInfo("Using X shared memory extension for higher image transfer speeds.\n");
} else { } else {
Backend_PrintInfo("Unable to use X shared memory extension. Expect lower performance.\n"); Backend_PrintInfo("Unable to use X shared memory extension. Expect lower performance.\n");
Backend_PrintInfo("On Sun, you might need to do the following:\n\nsetenv DISPLAY :0\nsetenv XSUNTRANSPORT shmem\nsetenv XSUNSMESIZE 512\n");
} }
window = XCreateWindow(xDisplay, rootWindow, 0, 0, screen_width, screen_height, 0, 24, InputOutput, xVisual, 0, NULL); window = XCreateWindow(xDisplay, rootWindow, 0, 0, screen_width, screen_height, 0, 24, InputOutput, xVisual, 0, NULL);