From 3504fd5080dbcfd0172299c5c6d13895e53ad163 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sat, 23 Feb 2019 12:15:46 -0500 Subject: Removed position caches There aren't going to be enough entities at once for position checking to ever really be a bottleneck, I don't think. Removing the caches makes the range logic a bit more intuitive, and it removes the possibility of accidentally not updating a cache when it needs to be. --- src/simulation.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/simulation.h') diff --git a/src/simulation.h b/src/simulation.h index a205796..096377c 100644 --- a/src/simulation.h +++ b/src/simulation.h @@ -4,7 +4,6 @@ #include "entity.h" #include "renderer.h" #include "schedule.h" -#include "grid_cache.h" #include #include #include @@ -76,9 +75,6 @@ private: std::vector entities_; std::deque available_; std::set active_; - - mutable GridCache posCache_ { level_ }; - mutable GridCache moveToCache_ { level_ }; }; #endif /* end of include guard: SIMULATION_H_7BF6EEA4 */ -- cgit 1.4.1