From f4564e3727768dd23ebabe44d511034cd92b9c19 Mon Sep 17 00:00:00 2001 From: Filip Leonarski Date: Sat, 31 Jan 2026 22:26:38 +0100 Subject: [PATCH] ColorScale: Reduce LUT size to 512 (so it fits L1 cache) --- common/ColorScale.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/ColorScale.h b/common/ColorScale.h index 3fab2ff4..81a7d2e7 100644 --- a/common/ColorScale.h +++ b/common/ColorScale.h @@ -76,7 +76,7 @@ class ColorScale { static rgb Apply(float input, const std::vector &map); - static constexpr size_t kLutSize = 4096; + static constexpr size_t kLutSize = 512; mutable std::vector lut_; void CalcLUT() const;