X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fx11.h;h=c643dc72255e8ca587d5106fad00f61ca5a2293b;hb=994cb017022c658f115e3c9fc927d8a0cc83832c;hp=c42f25cc54fe4d896277a192c5348b01351e2d2f;hpb=a68dfca84d72a259068484eae45f2ff78b405f94;p=rocksndiamonds.git diff --git a/src/libgame/x11.h b/src/libgame/x11.h index c42f25cc..c643dc72 100644 --- a/src/libgame/x11.h +++ b/src/libgame/x11.h @@ -34,6 +34,15 @@ #define TARGET_STRING "X11" #endif +#if defined(PLATFORM_UNIX) +/* This triggers some stuff that is needed because X11 (XSetClipOrigin(), + to be precise) is often very slow when preparing a masked XCopyArea() + for big Pixmaps. + To prevent this, small (tile-sized) mask Pixmaps are created which will + then be set much faster with XSetClipOrigin() and speed things up a lot. */ +#define TARGET_X11_NATIVE_PERFORMANCE_WORKAROUND +#endif + #define FULLSCREEN_STATUS FULLSCREEN_NOT_AVAILABLE