Skip to content
tetrisface edited this page Feb 12, 2024 · 5 revisions

How to profile the engine using tracy

Preparation steps:

  1. Download Tracy, unzip it anywhere: https://github.com/wolfpld/tracy/releases/tag/v0.9.1

  2. Get the exact engine version we are currently using from https://engine-builds.beyondallreason.dev/index.html

  3. Find the exact engine version folder we are currently using in BAR/data/engine


Method A simple

4A. Rename the old spring.exe to spring_vanilla.exe, and extract spring.exe from the archive to this engine folder.

5A. Start BAR as you would otherwise via the lancher.


Method B advanced

4B. Unzip the engine to BAR/data/engine

5B. Get the BAR Debug Launcher exe file from here: https://github.com/beyond-all-reason/bar_debug_launcher/tree/main . Install it to BAR root folder (next to beyond-all-reason.exe)

6B. In the BAR Debug launcher, select the tracy engine build you unzipped in step 2, and select "Spring-launcher with rapid://byar-chobby:test"

6B. Hit Start in the BAR Debug launcher

image


  1. Launch Tracy.exe, and hit connect. If it throws an instrumentation error, connect again.

image

  1. Analyze profile.