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:
.gitlab-ci.yml
35 lines | 913 B | text/x-yaml | YamlLexer
35 lines | 913 B | text/x-yaml | YamlLexer
r449 | # These images don't have Make, so commands are executed directly | |||
r341 | stages: | |||
r454 | # - validate | |||
r341 | - build | |||
r454 | # validate: | |||
# stage: validate | ||||
# script: | ||||
# - dotnet tool install -g dotnet-script | ||||
# - dotnet tool run dotnet-script scripts/LoadYaml.csx | ||||
# - dotnet tool run dotnet-script scripts/LoadInk.csx | ||||
# image: mcr.microsoft.com/dotnet/sdk:3.1 | ||||
r447 | ||||
r341 | build-debug: | |||
stage: build | ||||
script: | ||||
- dotnet build isometric-park-fna-core.sln -f netcoreapp3.1 | ||||
r574 | image: mcr.microsoft.com/dotnet/sdk:3.1.415-focal | |||
r341 | ||||
build-release-windows: | ||||
stage: build | ||||
script: | ||||
- dotnet build isometric-park-fna-core.sln -f netcoreapp3.1 -c Release | ||||
r574 | image: mcr.microsoft.com/dotnet/sdk:3.1.415 | |||
r341 | ||||
build-release: | ||||
stage: build | ||||
script: | ||||
- dotnet build isometric-park-fna-core.sln -f netcoreapp3.1 -c Release | ||||
artifacts: | ||||
paths: | ||||
- screenshot.xwd | ||||
expire_in: 1 week | ||||
r574 | image: mcr.microsoft.com/dotnet/sdk:3.1.415-focal | |||