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/lib/MojoShader/csharp/MojoShader-CS.sln
20 lines | 880 B | text/plain | TextLexer
20 lines | 880 B | text/plain | TextLexer
r0 | | |||
Microsoft Visual Studio Solution File, Format Version 11.00 | ||||
# Visual Studio 2010 | ||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MojoShader-CS", "MojoShader-CS.csproj", "{19767B10-6A26-42B4-9413-5738E49DF437}" | ||||
EndProject | ||||
Global | ||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||||
Debug|x86 = Debug|x86 | ||||
Release|x86 = Release|x86 | ||||
EndGlobalSection | ||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||||
{19767B10-6A26-42B4-9413-5738E49DF437}.Debug|x86.ActiveCfg = Debug|x86 | ||||
{19767B10-6A26-42B4-9413-5738E49DF437}.Debug|x86.Build.0 = Debug|x86 | ||||
{19767B10-6A26-42B4-9413-5738E49DF437}.Release|x86.ActiveCfg = Release|x86 | ||||
{19767B10-6A26-42B4-9413-5738E49DF437}.Release|x86.Build.0 = Release|x86 | ||||
EndGlobalSection | ||||
GlobalSection(MonoDevelopProperties) = preSolution | ||||
StartupItem = MojoShader-CS.csproj | ||||
EndGlobalSection | ||||
EndGlobal | ||||