Disable geometry shader culling by default

Geometry shaders allow us to fix some clipping and culling issues in a
neat way on Mali and other platforms that don't support cull/clip
planes, plus allow us to take care of some esoteric edge cases
(triangle inversion), but unfortunately, at least on my Galaxy S20 with
32.1 drivers, they're just incredibly slow to compile. Around 100ms per
shader, which leads to multi-second stutters on first run in Wipeout for
example.

Until we can either reduce the number of shaders drastically, or we find
a driver version that's faster at compiling that we can cut this off at,
let's not default to them on. They are still available for use, and I'll
put something on the website to explain the issue...
This commit is contained in:
Henrik Rydgård 2022-12-13 23:10:32 +01:00
parent 48aa41e2c0
commit 69819852d4

View file

@ -881,7 +881,7 @@ static ConfigSetting graphicsSettings[] = {
#endif
ConfigSetting("CameraDevice", &g_Config.sCameraDevice, "", true, false),
ConfigSetting("VendorBugChecksEnabled", &g_Config.bVendorBugChecksEnabled, true, false, false),
ConfigSetting("UseGeometryShader", &g_Config.bUseGeometryShader, true, true, true),
ConfigSetting("UseGeometryShader", &g_Config.bUseGeometryShader, false, true, true),
ReportedConfigSetting("SkipBufferEffects", &g_Config.bSkipBufferEffects, false, true, true),
ConfigSetting("SoftwareRenderer", &g_Config.bSoftwareRendering, false, true, true),
ConfigSetting("SoftwareRendererJit", &g_Config.bSoftwareRenderingJit, true, true, true),