Performance check showed that I was checking every sprite even if they're way far away so now just do ones near-ish.
This commit is contained in:
parent
29e6d45dc6
commit
5179709e3c
7 changed files with 13 additions and 13 deletions
|
@ -28,6 +28,6 @@ class SpatialMap {
|
|||
DinkyECS::Entity get(Point at) const;
|
||||
FoundEntities neighbors(Point position, bool diag=false) const;
|
||||
|
||||
SortedEntities distance_sorted(Point from);
|
||||
SortedEntities distance_sorted(Point from, int max_distance);
|
||||
size_t size() { return table.size(); }
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue