Comparing two builds or two settings

A profile says where the time goes; whether a change helped is a separate, paired measurement of unprofiled runs.

python3 tools/bench_nvn_game.py --game "$games/<id>/<id>_code.so" \
    --baseline work/build-before/scarletnx --candidate build/rel/scarletnx \
    --frames 600 --script work/scene.snxtas --rounds 3 --timeout 300 --uncapped --out work/prof/ab

It runs baseline and candidate alternately, each from an isolated copy of the same saves, settings and empty caches, replays a frame-based input file, rejects runs that crash, time out or end on a blank screen, and keeps each run's final screenshot to inspect. Its metric includes startup and shader preparation; for steady-state frame time, use a long --frames or compare Tracy's frame ms over the same scene.


Made from docs/dev/profiling.md at 69237645142c. GPL-3.0-or-later.