Show More
Commit Description:
Optimize PreserveCounts and only recalculate when needed....
Commit Description:
Optimize PreserveCounts and only recalculate when needed. Previously would recalculate preservecounts every Update call (~1 per frame), which isn't necessary when there's no tick. Might be some room to tweak, like doing these updates only when preserves change. Some measurements: This takes about 30ms versus the .25 ms with no preserve (then like .0002ms). When the map is filled up with preserve, about 35ms and 9ms. With a handful of cells, it's more like 0.8ms (before JIT optimizes most of it away).
File last commit:
Show/Diff file:
Action:
.hgtags
9 lines | 447 B | text/plain | TextLexer
cd33afae1ee28c7331ee782faf582d6caa249839 0.24.30
34c640f575151909c4ca6bd1a85f86667941b85c 0.24.30-1
34c640f575151909c4ca6bd1a85f86667941b85c 0.24.30-1
45e75d4b0607f2e20237a3b7abe6d4c48403b0f7 0.24.30-1
78cd38bc5e9759187c5a521b6fea6e723e9f8506 0.26.12
acd6fd77f343e5c67281288c9dd10ef136d34a90 0.26.18
9d88447c1044549e78323c867ba8eef7e6c6a608 0.30.04
e0c3cf126c2431f4d4485e77726fad8a193526fd 0.32.02
87775570855d851014f8f585a17652c2a6805d38 0.36.31