Skip to content

Commit

Permalink
doc(site): Add tracy guide
Browse files Browse the repository at this point in the history
  • Loading branch information
badosu committed Apr 6, 2024
1 parent 3c1afa5 commit 4496d8e
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doc/site/_authors/beherith.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
short_name: beherith
github: Beherith
---
27 changes: 27 additions & 0 deletions doc/site/guides/profiling-with-tracy.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
layout: default
title: Profiling with Tracy
parent: Guides
permalink: guides/profiling-with-tracy
author: beherith
---

# 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 you are currently using (for example, for BAR that would be `BAR/data/engine`)

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

5. A. Start the game as you would otherwise via the launcher.

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

![image](https://github.com/beyond-all-reason/spring/assets/109391/830e5c6e-b37f-48ab-9adc-cc297cefff46)

8. Analyze profile.

0 comments on commit 4496d8e

Please sign in to comment.