From 59b6a11b99f254e6a055ac712533417fe34e5a7a Mon Sep 17 00:00:00 2001 From: Richard Biely Date: Tue, 12 Dec 2023 06:35:11 +0100 Subject: [PATCH] Tweaked: One less hash combination when calculating the query hash --- include/gaia/ecs/archetype.h | 1 - include/gaia/ecs/query_common.h | 4 ++-- single_include/gaia.h | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/include/gaia/ecs/archetype.h b/include/gaia/ecs/archetype.h index 25f86599..9115c6b1 100644 --- a/include/gaia/ecs/archetype.h +++ b/include/gaia/ecs/archetype.h @@ -17,7 +17,6 @@ #include "component.h" #include "component_cache.h" #include "component_utils.h" -#include "gaia/config/config_core.h" #include "id.h" namespace gaia { diff --git a/include/gaia/ecs/query_common.h b/include/gaia/ecs/query_common.h index d0d98664..0e59a223 100644 --- a/include/gaia/ecs/query_common.h +++ b/include/gaia/ecs/query_common.h @@ -184,9 +184,9 @@ namespace gaia { hash = core::hash_combine(hash, (QueryLookupHash::Type)pair.id.value()); } hash = core::hash_combine(hash, (QueryLookupHash::Type)pairs.size()); - hash = core::hash_combine(hash, (QueryLookupHash::Type)data.readWriteMask); - hashLookup = core::hash_combine(hashLookup, hash); + + hashLookup = hash; } // Filters diff --git a/single_include/gaia.h b/single_include/gaia.h index 0913d75e..2c683d34 100644 --- a/single_include/gaia.h +++ b/single_include/gaia.h @@ -18368,9 +18368,9 @@ namespace gaia { hash = core::hash_combine(hash, (QueryLookupHash::Type)pair.id.value()); } hash = core::hash_combine(hash, (QueryLookupHash::Type)pairs.size()); - hash = core::hash_combine(hash, (QueryLookupHash::Type)data.readWriteMask); - hashLookup = core::hash_combine(hashLookup, hash); + + hashLookup = hash; } // Filters