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:
Zed A. Shaw 2025-02-25 00:56:54 -05:00
parent 29e6d45dc6
commit 5179709e3c
7 changed files with 13 additions and 13 deletions

View file

@ -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(); }
};