Clean up Hash Functions
Clean up and do fixes to hash functions and newly introduced murmur3 hashes in #61934 * Clean up usage of murmur3 * Fixed usages of binary murmur3 on floats (this is invalid) * Changed DJB2 to use xor (which seems to be better)
This commit is contained in:
parent
8e3d9a23aa
commit
141c375581
40 changed files with 391 additions and 236 deletions
|
|
@ -376,7 +376,7 @@ void Label3D::_generate_glyph_surfaces(const Glyph &p_glyph, Vector2 &r_offset,
|
|||
} else {
|
||||
mat_hash = hash_one_uint64(0);
|
||||
}
|
||||
mat_hash = hash_djb2_one_64(p_priority | (p_outline_size << 31), mat_hash);
|
||||
mat_hash = hash_fmix32(hash_murmur3_one_64(p_priority | (p_outline_size << 31), mat_hash));
|
||||
|
||||
if (!surfaces.has(mat_hash)) {
|
||||
SurfaceData surf;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue