Show More
Commit Description:
Add timers for Simulation and various engines...
Commit Description:
Add timers for Simulation and various engines
Starting to add additional timers for different stages of the process of
updating in order to get more insight into what is slowing it down.
The update takes 9ms, which is much longer than it used to.
Engine-specific timers are coming later.
References:
File last commit:
Show/Diff file:
Action:
Makefile
118 lines | 4.4 KiB | text/x-makefile | MakefileLexer
118 lines | 4.4 KiB | text/x-makefile | MakefileLexer
r105 | ||||
r519 | CORE_SOLUTION = ./isometric-park-fna/isometric-park-fna-core.csproj #./isometric-park-fna-core.sln | |||
r105 | FRAMEWORK_SOLUTION = ./isometric-park-fna.sln | |||
r371 | DEFAULT_RUN = framework-debug | |||
r372 | #BUILD | |||
# While I frequently build and run using make, the convention is that running | ||||
# 'make' by itself merely builds the software: | ||||
default: $(DEFAULT_RUN) | ||||
r105 | ||||
r463 | core-debug: validate ink clean-package portraits | |||
r105 | dotnet build ${CORE_SOLUTION} -f netcoreapp3.1 | |||
r463 | core-release: validate ink clean-package portraits | |||
r136 | dotnet build ${CORE_SOLUTION} -f netcoreapp3.1 -c Release | |||
r105 | ||||
r440 | framework-release: validate ink portraits | |||
r105 | msbuild -restore:True ${FRAMEWORK_SOLUTION} -p:Configuration=Release | |||
r440 | framework-debug: validate ink clean-obj portraits | |||
r374 | msbuild -restore:True ${FRAMEWORK_SOLUTION} -p:Configuration=Debug | |||
r105 | ||||
r136 | ||||
r416 | #PIPELINE | |||
r524 | ##Paks | |||
##I do some dubious things here to adopt Make to a workflow that generates multiple output files per input file, which | ||||
##is not Make's strong suit. | ||||
isometric-park-fna/Content/Pak64/split/%.png: isometric-park-fna/Content/Pak64/%.png | ||||
convert $< -transparent '#e7ffff' -crop 64x64 isometric-park-fna/Content/Pak64/split/$*"%02d.png" | ||||
cp isometric-park-fna/Content/Pak64/split/$*00.png $@ | ||||
isometric-park-fna/Content/pak64_tileset.png: $(shell find -ipath "*isometric-park-fna/Content/Pak64/*.png" -and -not -ipath "*split*" | sed "s:Pak64/:Pak64/split/:" |sort) | ||||
rm $^ | ||||
montage isometric-park-fna/Content/Pak64/split/* -background transparent -tile 5 -geometry +0+0 -gravity north PNG8:$@ | ||||
touch $^ | ||||
pak: isometric-park-fna/Content/pak64_tileset.png | ||||
## Merged | ||||
isometric-park-fna/Content/merged_tileset.png: isometric-park-fna/Content/pak64_tileset.png | ||||
r561 | montage isometric-park-fna/Content/part4_tileset.png $^ isometric-park-fna/Content/remos_trees2.png isometric-park-fna/Content/64x64_Objects_2.png isometric-park-fna/Content/rubberduck_parts_tower.png -background transparent -geometry +0+0 -tile 1x PNG:isometric-park-fna/Content/merged_tileset.png | |||
r524 | ||||
merged: isometric-park-fna/Content/merged_tileset.png | ||||
##Portraits | ||||
r440 | isometric-park-fna/Content/Portraits/converted/%.png: isometric-park-fna/Content/Portraits/%.jpg | |||
convert $< -resize 500x500\> -dither FloydSteinberg -colors 8 -colorspace gray $@ | ||||
r443 | isometric-park-fna/Content/portraits.png: $(shell find -ipath "*isometric-park-fna/Content/Portraits/*.jpg" | sed "s/.jpg/.png/" | sed "s:Portraits/:Portraits/converted/:" |sort) | |||
r440 | # isometric-park-fna/Content/Portraits/converted/%.png | |||
montage $^ -background transparent -geometry 300x400 -gravity north PNG8:isometric-park-fna/Content/portraits.png | ||||
portraits: isometric-park-fna/Content/portraits.png | ||||
isometric-park-fna/Content/%.json: $(shell find -ipath "*isometric-park-fna/Content/*.ink") | ||||
r455 | inklecate -o $@ $< | |||
r416 | ||||
ink: isometric-park-fna/Content/dialog.json | ||||
r372 | #RUN | |||
r374 | run-core-debug: | |||
r341 | cd isometric-park-fna/bin/Debug/netcoreapp3.1; LD_LIBRARY_PATH="../../../../fnalibs/lib64" DYLD_LIBRARY_PATH="../../../../fnalibs/osx" dotnet ./isometric-park-fna.dll | |||
r136 | ||||
r374 | run-core-release: | |||
r341 | cd isometric-park-fna/bin/Release/netcoreapp3.1; LD_LIBRARY_PATH="../../../../fnalibs/lib64" DYLD_LIBRARY_PATH="../../../../fnalibs/osx" dotnet ./isometric-park-fna.dll | |||
r374 | run-core-release-xvfb: | |||
r341 | cd isometric-park-fna/bin/Release/netcoreapp3.1; LD_LIBRARY_PATH="../../../../fnalibs/lib64" DYLD_LIBRARY_PATH="../../../../fnalibs/osx" xvfb-run -a -s "-screen 0 1400x900x24 +extension RANDR +extension GLX +extension RENDER" -- dotnet ./isometric-park-fna.dll | |||
r136 | ||||
r272 | run-framework-release: | |||
cd isometric-park-fna/bin/Release/; LD_LIBRARY_PATH="../../../fnalibs/lib64" DYLD_LIBRARY_PATH="../../../fnalibs/osx" mono isometric-park-fna.exe | ||||
r371 | run-framework-debug: | |||
r398 | cd isometric-park-fna/bin/Debug/; LD_LIBRARY_PATH="../../../fnalibs/lib64" DYLD_LIBRARY_PATH="../../../fnalibs/osx" mono --debug isometric-park-fna.exe | |||
r272 | ||||
r139 | # lint: | |||
r372 | # yamllint -d relaxed isometric-park-fna/Content/news_items.yaml | |||
r374 | count: | |||
tokei -e isometric-park-fna/packages -e isometric-park-fna/bin -e isometric-park-fna/build_log.txt -e isometric-park-fna/obj scripts/ isometric-park-fna/ | ||||
r372 | ||||
clean-obj: | ||||
r398 | #If this folder doesn't exist and we get an error, that's okay | |||
-rm -r isometric-park-fna/obj/ | ||||
r139 | ||||
r455 | clean-package: | |||
r474 | #If this folder doesn't exist, that's okay | |||
r455 | -rm -r isometric-park-fna/packages/* packages/* | |||
r415 | # VALIDATE | |||
validate-yaml: | ||||
csi scripts/LoadYaml.csx | ||||
validate-ink: | ||||
csi scripts/LoadInk.csx | ||||
validate: validate-yaml validate-ink | ||||
r105 | #CONVENIENCE | |||
# Just using framework for releases since I know it works for now: | ||||
release: framework-release | ||||
r371 | run: $(DEFAULT_RUN) run-$(DEFAULT_RUN) | |||