From 6fb1689d021a8f6175f288e1d837afcc492f1939 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sun, 23 Apr 2017 17:19:35 +0300 Subject: [PATCH] Disabled truecolor software renderer on PowerPC by default Performance on such old hardware is not acceptable --- src/posix/cocoa/i_video.mm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/posix/cocoa/i_video.mm b/src/posix/cocoa/i_video.mm index 14120a59b..67f23fc5a 100644 --- a/src/posix/cocoa/i_video.mm +++ b/src/posix/cocoa/i_video.mm @@ -125,7 +125,13 @@ EXTERN_CVAR(Bool, ticker ) EXTERN_CVAR(Bool, vid_vsync) EXTERN_CVAR(Bool, vid_hidpi) -CUSTOM_CVAR(Bool, swtruecolor, true, CVAR_ARCHIVE | CVAR_GLOBALCONFIG | CVAR_NOINITCALL) +#if defined __ppc__ || defined __ppc64__ +static const bool TRUECOLOR_DEFAULT = false; +#else // other than PowerPC +static const bool TRUECOLOR_DEFAULT = true; +#endif // PowerPC + +CUSTOM_CVAR(Bool, swtruecolor, TRUECOLOR_DEFAULT, CVAR_ARCHIVE | CVAR_GLOBALCONFIG | CVAR_NOINITCALL) { // Strictly speaking this doesn't require a mode switch, but it is the easiest // way to force a CreateFramebuffer call without a lot of refactoring.