fixes
This commit is contained in:
@@ -1,4 +1,16 @@
|
|||||||
.PHONY: shaders-vulkan shaders-d3d12 shaders-metal shaders-all bake toad hello_sprite crowd camera_sandbox clips check test help
|
.PHONY: shaders-vulkan shaders-d3d12 shaders-metal shaders-all bake toad hello_sprite crowd camera_sandbox clips check test help
|
||||||
|
.PHONY: flame flame-build flame-record flame-svg flame-report flame-tools
|
||||||
|
|
||||||
|
# Flamegraph profiling (needs: pacman -S perf). Example: make flame or make flame FLAME_EXAMPLE=toad
|
||||||
|
FLAME_EXAMPLE ?= crowd
|
||||||
|
FLAME_BIN := $(FLAME_EXAMPLE)_perf
|
||||||
|
FLAMEGRAPH_DIR ?= tools/FlameGraph
|
||||||
|
FLAME_OUT_DIR ?= flame
|
||||||
|
# One stamp per `make` invocation so svg/jpg/report share a name.
|
||||||
|
ifndef FLAME_STAMP
|
||||||
|
FLAME_STAMP := $(shell date +%Y%m%d-%H%M%S)
|
||||||
|
endif
|
||||||
|
FLAME_PREFIX := $(FLAME_OUT_DIR)/$(FLAME_EXAMPLE)-$(FLAME_STAMP)
|
||||||
|
|
||||||
help:
|
help:
|
||||||
@echo "Targets:"
|
@echo "Targets:"
|
||||||
@@ -14,6 +26,11 @@ help:
|
|||||||
@echo " crowd Many sprites, one Character_Data"
|
@echo " crowd Many sprites, one Character_Data"
|
||||||
@echo " camera_sandbox Pan camera / Space toggles follow"
|
@echo " camera_sandbox Pan camera / Space toggles follow"
|
||||||
@echo " clips Keys 1/2 switch idle/walk"
|
@echo " clips Keys 1/2 switch idle/walk"
|
||||||
|
@echo " flame Build+record+SVG+JPG+text report (FLAME_EXAMPLE=$(FLAME_EXAMPLE))"
|
||||||
|
@echo " flame-build Optimized debug binary ($(FLAME_BIN))"
|
||||||
|
@echo " flame-record perf record (play, then quit)"
|
||||||
|
@echo " flame-svg Convert perf.data -> $(FLAME_PREFIX).svg/.jpg"
|
||||||
|
@echo " flame-report Convert perf.data -> $(FLAME_PREFIX)-report.txt"
|
||||||
|
|
||||||
bake:
|
bake:
|
||||||
./scripts/bake_all.sh
|
./scripts/bake_all.sh
|
||||||
@@ -31,6 +48,7 @@ shaders-all: shaders-vulkan shaders-d3d12 shaders-metal
|
|||||||
|
|
||||||
test:
|
test:
|
||||||
odin test engine
|
odin test engine
|
||||||
|
odin test assetbake
|
||||||
|
|
||||||
check:
|
check:
|
||||||
odin check examples/toad -collection:pkg=.
|
odin check examples/toad -collection:pkg=.
|
||||||
@@ -53,8 +71,6 @@ camera_sandbox:
|
|||||||
|
|
||||||
clips:
|
clips:
|
||||||
odin run examples/clips -collection:pkg=.
|
odin run examples/clips -collection:pkg=.
|
||||||
<<<<<<< Updated upstream
|
|
||||||
=======
|
|
||||||
|
|
||||||
flame-tools:
|
flame-tools:
|
||||||
@if [ ! -x "$(FLAMEGRAPH_DIR)/stackcollapse-perf.pl" ] || [ ! -x "$(FLAMEGRAPH_DIR)/flamegraph.pl" ]; then \
|
@if [ ! -x "$(FLAMEGRAPH_DIR)/stackcollapse-perf.pl" ] || [ ! -x "$(FLAMEGRAPH_DIR)/flamegraph.pl" ]; then \
|
||||||
@@ -85,4 +101,3 @@ flame-report:
|
|||||||
|
|
||||||
flame: flame-record flame-svg flame-report
|
flame: flame-record flame-svg flame-report
|
||||||
@echo "Artifacts: $(FLAME_PREFIX).{svg,jpg} $(FLAME_PREFIX)-report.txt"
|
@echo "Artifacts: $(FLAME_PREFIX).{svg,jpg} $(FLAME_PREFIX)-report.txt"
|
||||||
>>>>>>> Stashed changes
|
|
||||||
|
|||||||
BIN
Binary file not shown.
Reference in New Issue
Block a user