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:
FNA/README
26 lines | 703 B | text/plain | TextLexer
26 lines | 703 B | text/plain | TextLexer
r0 | This is FNA, an XNA4 reimplementation that focuses solely on developing a fully | |||
accurate XNA4 runtime for the desktop. | ||||
Project Website: http://fna-xna.github.io/ | ||||
License | ||||
------- | ||||
FNA is released under the Microsoft Public License. See LICENSE for details. | ||||
FNA uses LzxDecoder.cs, released under a dual MSPL/LGPL license. | ||||
See lzxdecoder.LICENSE for details. | ||||
FNA uses code from the Mono.Xna project, released under the MIT license. | ||||
See monoxna.LICENSE for details. | ||||
Documentation | ||||
------------- | ||||
Documentation for FNA can be found on the FNA wiki: | ||||
https://github.com/FNA-XNA/FNA/wiki | ||||
Found an issue? | ||||
--------------- | ||||
Issues and patches can be reported via GitHub: | ||||
https://github.com/FNA-XNA/FNA/issues | ||||