From 42214976648e768d0a525dd6e5f84a1f300c25ae Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 10 Apr 2023 09:03:38 +0200 Subject: external, src/world: add tsl::robin_map --- src/CMakeLists.txt | 1 + src/world.hpp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index a03235e8..4aa9dbb4 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -7,4 +7,5 @@ target_link_libraries( Magnum::Magnum Magnum::Shaders fmt::fmt + tsl::robin_map ) diff --git a/src/world.hpp b/src/world.hpp index 4b8ce797..90067c35 100644 --- a/src/world.hpp +++ b/src/world.hpp @@ -6,6 +6,7 @@ #include "compat/exception.hpp" #include #include +#include template<> struct std::hash final { @@ -31,7 +32,7 @@ private: } _last_chunk; std::unordered_map _chunks; - std::unordered_map> _entities; + tsl::robin_map> _entities; size_t _last_collection = 0; size_t _collect_every = 64; std::shared_ptr _unique_id = std::make_shared('A'); -- cgit v1.2.3