diff options
author | Jiang Yiheng <jj11hh@live.com> | 2024-09-22 21:08:18 +0800 |
---|---|---|
committer | Jiang Yiheng <jj11hh@live.com> | 2024-09-22 21:08:18 +0800 |
commit | 864d4fb32a8b2ad51ad2611e45e9a9f33efff5f6 (patch) | |
tree | 9867478475a6999f027d9760af8107a61bed2cc5 /servers/rendering/renderer_rd/storage_rd | |
parent | e4e024ab88efe74677769395886bc1b09eccbac7 (diff) | |
download | redot-engine-864d4fb32a8b2ad51ad2611e45e9a9f33efff5f6.tar.gz |
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.
Diffstat (limited to 'servers/rendering/renderer_rd/storage_rd')
-rw-r--r-- | servers/rendering/renderer_rd/storage_rd/render_scene_buffers_rd.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 c885ad52d1..0025fc5ab7 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); |