build(tracy): mise run tracy-tools builds tracy-capture and tracy-csvexport 0.15.0 into _deps #1746
No reviewers
Labels
No labels
area/accessibility
area/audio
area/input
area/install
area/menu
area/renderer
area/saves
area/tooling
area/upscaling
beanstalk: approved
beanstalk: failed
beanstalk: needs approval
beanstalk: running
beanstalk: tested
ci: approved
good first issue
gpu/amd
gpu/igpu
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
needs measurements
platform/linux
platform/macos
platform/steam-deck
platform/windows
preview
priority
critical
priority
high
priority
low
regression
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot!1746
Loading…
Reference in a new issue
No description provided.
Delete branch "HumanBean/Longshot:build/tracy-tools"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Type: build · Risk: low · Tested on: CachyOS Linux (cmake 4, ninja, clang) · Needs: nothing
TL;DR
Profiling the game with Tracy needs
tracy-capture(andtracy-csvexportto read a capture as text) at exactly 0.15.0, the game's client's protocol version. Tracy publishes programs for Windows only, so on Linux everyone built them by hand.mise run tracy-toolsnow builds both from the pinned source, SHA-256 checked, into the checkout's_deps/tracy-0.15.0/bin.Breakdown
LONGSHOT_TRACY=1builds, docs/development/tracy.md).tracy-toolsmise task: it downloads Tracy v0.15.0's source tarball, checks its SHA-256, buildscaptureandcsvexportwith cmake and ninja, and copies both programs to_deps/tracy-0.15.0/bin(inside the checkout, ignored as_deps/is; nothing global). A second run sees them and stops. The Capture section of tracy.md names the task.third_party/tracy), any build of the game, and the other tasks.LONGSHOT_TRACY=1game (a Castle Town Market capture, exported withtracy-csvexport); a second run said "already built".Why
Finding where the game's frames go, for the performance work, needed Tracy captures on Linux; the tools had to be built by hand from source, each time into a different place. A task makes that one command, into a folder of the checkout, at the one version that works.
What changed
mise.toml:[tasks.tracy-tools](Linux and macOS shells; it checks for cmake, ninja and c++ first and says which is missing).docs/development/tracy.md: the Capture section names the task.Measurements
Nothing to measure: a developer task that changes no build of the game.
Flags and settings
None.
Testing
Tested: CachyOS Linux:
mise run tracy-toolsfrom an empty_deps/: the tarball's checksum checked, both tools built (_deps/tracy-0.15.0/bin/tracy-capture,tracy-csvexport);tracy-capture -a 127.0.0.1took a capture from aLONGSHOT_TRACY=1game andtracy-csvexportread it; a second run stopped at "already built".Not tested: macOS (it should build the same way, untried). Windows has Tracy's own release programs; the task needs bash.
mise run test: not run on this PC.Must be tested:
mise run tracy-toolsfrom an empty_deps/, expectingtracy-captureandtracy-csvexportin_deps/tracy-0.15.0/binandtracy-capture -a 127.0.0.1connecting to aLONGSHOT_TRACY=1gameRisks
What could break: nothing outside the task.
Turning it off: don't run it; or revert.
Compatibility: Nothing changes: no option, cache or API.
Checklist
Everyone
type(scope): description) of the status line's type.can't be run by hand is in Testing's Not testable by hand, with why.
in Risks.
main.python -I -B tests/run_all.pypasses (any failure that also fails onmainis named). Not run on this PC.third_party/untouched (a new folder with aPROVENANCE.mdinstead).When it applies
Assisted-by:/Co-Authored-By:trailers.🤖 Generated with Claude Code
https://claude.ai/code/session_016o1k1PazAdTJxQQWQBksW2
Possibly related, for context:
WIP: build(tracy): mise run tracy-tools builds tracy-capture and tracy-csvexport 0.15.0 into _depsto build(tracy): mise run tracy-tools builds tracy-capture and tracy-csvexport 0.15.0 into _deps