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).
References:
File last commit:
Show/Diff file:
Action:
.hgignore
37 lines | 596 B | text/plain | TextLexer
37 lines | 596 B | text/plain | TextLexer
r0 | syntax: glob | |||
*.git/* | ||||
.vs/* | ||||
*.DS_Store | ||||
r149 | *mono_crash* | |||
r243 | *.pytest_cache/* | |||
r0 | ||||
packages/* | ||||
r15 | [Dd]ebug/ | |||
[Dd]ebugPublic/ | ||||
[Rr]elease/ | ||||
[Rr]eleases/ | ||||
[Aa][Rr][Mm]/ | ||||
[Aa][Rr][Mm]64/ | ||||
bld/ | ||||
[Bb]in/ | ||||
[Oo]bj/ | ||||
[Ll]og/ | ||||
[Ll]ogs/ | ||||
r499 | log*.txt | |||
*build_log.txt | ||||
r15 | ||||
r149 | ||||
*.app/* | ||||
**.dmg | ||||
PackageTemplates/* | ||||
isometric-park-fna/Content/images/converted/* | ||||
r444 | isometric-park-fna/Content/images/crops/* | |||
isometric-park-fna/Content/Portraits/converted/* | ||||
isometric-park-fna/Content/Portraits/crops/* | ||||
r524 | isometric-park-fna/Content/Pak64/split/* | |||
r243 | isometric-park-fna/DynamicLanguageRuntime.1.3.0/* | |||
isometric-park-fna/IronPython.2.7.11/ | ||||
r444 | **.patch | |||
r499 | ||||
FNA/obj_core/* | ||||