From a5040ecdfc18b8c63255a1028535ef88f4e183c2 Mon Sep 17 00:00:00 2001 From: Stephan Unverwerth Date: Sat, 15 Jan 2022 21:10:22 +0100 Subject: [PATCH] LibSoftGPU: Reduce number of samplers to 2 OpenGL mandates at least 2 texture units when multitexturing is supported. This keeps our vertices lean and gives a nice speed improvement in glquake. Until we support shaders this should be enough. --- Userland/Libraries/LibSoftGPU/Config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibSoftGPU/Config.h b/Userland/Libraries/LibSoftGPU/Config.h index e9b54f6d2a..c75603427e 100644 --- a/Userland/Libraries/LibSoftGPU/Config.h +++ b/Userland/Libraries/LibSoftGPU/Config.h @@ -15,7 +15,7 @@ namespace SoftGPU { static constexpr bool ENABLE_STATISTICS_OVERLAY = false; -static constexpr int NUM_SAMPLERS = 32; +static constexpr int NUM_SAMPLERS = 2; static constexpr int SUBPIXEL_BITS = 5; static constexpr int NUM_LIGHTS = 8;