diff options
author | Stephan Unverwerth <s.unverwerth@serenityos.org> | 2022-01-15 21:10:22 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-01-19 19:57:49 +0100 |
commit | a5040ecdfc18b8c63255a1028535ef88f4e183c2 (patch) | |
tree | fd229cffa508d844f5f1dfea41e85345fc892753 /Userland | |
parent | 12f63df329148148f32dc50c4f6cadf6af73a6ac (diff) | |
download | serenity-a5040ecdfc18b8c63255a1028535ef88f4e183c2.zip |
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.
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibSoftGPU/Config.h | 2 |
1 files changed, 1 insertions, 1 deletions
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; |