diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2019-02-23 12:15:46 -0500 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2019-02-23 12:15:46 -0500 |
commit | 3504fd5080dbcfd0172299c5c6d13895e53ad163 (patch) | |
tree | caab8e868566262b3aa4d80aa6a06cdf13e7c21d /src/simulation.h | |
parent | 15b511e694f976686fdec1fb9f959f8a92f3b594 (diff) | |
download | dispatcher-3504fd5080dbcfd0172299c5c6d13895e53ad163.tar.gz dispatcher-3504fd5080dbcfd0172299c5c6d13895e53ad163.tar.bz2 dispatcher-3504fd5080dbcfd0172299c5c6d13895e53ad163.zip |
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.
Diffstat (limited to 'src/simulation.h')
-rw-r--r-- | src/simulation.h | 4 |
1 files changed, 0 insertions, 4 deletions
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 @@ | |||
4 | #include "entity.h" | 4 | #include "entity.h" |
5 | #include "renderer.h" | 5 | #include "renderer.h" |
6 | #include "schedule.h" | 6 | #include "schedule.h" |
7 | #include "grid_cache.h" | ||
8 | #include <range/v3/all.hpp> | 7 | #include <range/v3/all.hpp> |
9 | #include <vector> | 8 | #include <vector> |
10 | #include <deque> | 9 | #include <deque> |
@@ -76,9 +75,6 @@ private: | |||
76 | std::vector<Entity> entities_; | 75 | std::vector<Entity> entities_; |
77 | std::deque<id_type> available_; | 76 | std::deque<id_type> available_; |
78 | std::set<id_type> active_; | 77 | std::set<id_type> active_; |
79 | |||
80 | mutable GridCache<id_type> posCache_ { level_ }; | ||
81 | mutable GridCache<id_type> moveToCache_ { level_ }; | ||
82 | }; | 78 | }; |
83 | 79 | ||
84 | #endif /* end of include guard: SIMULATION_H_7BF6EEA4 */ | 80 | #endif /* end of include guard: SIMULATION_H_7BF6EEA4 */ |