ci-platforms / windows amd64 smoke (push) Skipped
ci-platforms / darwin arm64 smoke (push) Skipped
github-native / gitea-pending (push) Skipped
github-native / darwin amd64 native (push) Skipped
github-native / linux amd64 native (push) Skipped
github-native / windows amd64 native (push) Skipped
github-native / darwin arm64 native (push) Skipped
github-native / gitea-result (push) Skipped
ci / checks (push) Failing after 23s
ci / native-authoring (push) Skipped
ci / build (amd64, linux, ubuntu-24.04) (push) Successful in 11m23s
ci / release (push) Skipped
ci-platforms / darwin amd64 smoke (push) Skipped
36 lines
1.5 KiB
Makefile
36 lines
1.5 KiB
Makefile
BENCH_PHYSICS_PKGS += ./modules/physics/world ./demos/physics2d
|
|
MODULE_CI += demo-physics example-sandbox check-physics
|
|
MODULE_BENCH_ALLOCS += bench-allocs-physics
|
|
MODULE_BENCH_BASELINE += bench-baseline-physics
|
|
MODULE_BENCH_COMPARE += ./tests/integration:EditorFrame
|
|
|
|
.PHONY: bench-physics-run bench-physics bench-allocs-physics bench-baseline-physics demo-physics example-sandbox check-physics
|
|
|
|
bench-physics-run:
|
|
mkdir -p $(BENCH_DIR)
|
|
$(BENCH_PIN) go test -run '^$$' -bench . -benchmem -count=$(BENCH_COUNT) $(BENCH_PHYSICS_PKGS) > $(BENCH_OUT)
|
|
$(BENCH_PIN) go test -run '^$$' -bench Platformer -benchmem -count=$(BENCH_COUNT) ./tests/integration >> $(BENCH_OUT)
|
|
|
|
bench-physics:
|
|
$(MAKE) bench-physics-run BENCH_OUT=$(BENCH_DIR)/physics.txt
|
|
$(BENCH_GATE) -base $(BENCH_BASE_DIR)/physics.base.txt -head $(BENCH_DIR)/physics.txt
|
|
|
|
bench-baseline-physics:
|
|
mkdir -p $(BENCH_BASE_DIR)
|
|
$(MAKE) bench-physics-run BENCH_OUT=$(BENCH_BASE_DIR)/physics.base.txt
|
|
|
|
bench-allocs-physics:
|
|
$(MAKE) bench-physics-run BENCH_OUT=$(BENCH_DIR)/physics.allocs.txt BENCH_COUNT=1
|
|
$(BENCH_GATE) -time=false -base $(BENCH_BASE_DIR)/physics.base.txt -head $(BENCH_DIR)/physics.allocs.txt
|
|
|
|
demo-physics: bootstrap
|
|
go test -count=1 -run TestSceneRunsHeadless ./demos/physics2d
|
|
go run ./cmd/sandbox --demo physics2d-headless --frames 600
|
|
|
|
example-sandbox: cli
|
|
.cache/bin/aego check examples/physics-sandbox
|
|
.cache/bin/aego run examples/physics-sandbox --headless --frames 600
|
|
|
|
check-physics: cli
|
|
.cache/bin/aego test examples/physics-sandbox
|