Show More
Description:
Optimize PreserveCounts and only recalculate when needed....
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:
Name | Size | Modified | Last Commit | Author |
---|---|---|---|---|
.. | ||||
redefinition | Loading ... | |||
redefinition-file | Loading ... | |||
redefinition-file.correct | Loading ... | |||
redefinition-line | Loading ... | |||
redefinition-line.correct | Loading ... | |||
redefinition.correct | Loading ... | |||
too-many-macro-args | Loading ... | |||
too-many-macro-args.correct | Loading ... | |||
undef-file | Loading ... | |||
undef-file-twice | Loading ... | |||
undef-file-twice.correct | Loading ... | |||
undef-file.correct | Loading ... | |||
undef-line | Loading ... | |||
undef-line-twice | Loading ... | |||
undef-line-twice.correct | Loading ... | |||
undef-line.correct | Loading ... |