From 864d4fb32a8b2ad51ad2611e45e9a9f33efff5f6 Mon Sep 17 00:00:00 2001 From: Jiang Yiheng Date: Sun, 22 Sep 2024 21:08:18 +0800 Subject: [PATCH] Fix hash calculation for NTSliceKey A bug was introduced from 057367bf by adding FSR 2.2.1 support. Which increases hash collision and hurts performance. --- .../rendering/renderer_rd/storage_rd/render_scene_buffers_rd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/rendering/renderer_rd/storage_rd/render_scene_buffers_rd.h b/servers/rendering/renderer_rd/storage_rd/render_scene_buffers_rd.h index c885ad52d17..0025fc5ab71 100644 --- a/servers/rendering/renderer_rd/storage_rd/render_scene_buffers_rd.h +++ b/servers/rendering/renderer_rd/storage_rd/render_scene_buffers_rd.h @@ -128,7 +128,7 @@ private: h = hash_murmur3_one_32(p_val.layers, h); h = hash_murmur3_one_32(p_val.mipmap, h); h = hash_murmur3_one_32(p_val.mipmaps, h); - h = hash_murmur3_one_32(p_val.texture_view.format_override); + h = hash_murmur3_one_32(p_val.texture_view.format_override, h); h = hash_murmur3_one_32(p_val.texture_view.swizzle_r, h); h = hash_murmur3_one_32(p_val.texture_view.swizzle_g, h); h = hash_murmur3_one_32(p_val.texture_view.swizzle_b, h);