...
~/.local/share/Steam/steamapps/common/Neverwinter\ Nights/bin/linux-x86/tracy/Tracy
Configuration
Enable tracy in settings.tml
[instrumentation]
[instrumentation.tracy]
bind-all-interfaces = false
enabled = true
port = 8086
Profiling NWN
Client (nwmain)
- Launch the client
- Launch Tracy
Dedicated server (nwserver)
- Native
- No nwnx
- Launch the nwserver binary
- Launch Tracy
- With nwnx
- Compile nwnx for the target version of nwserver
- Launch the nwserver binary
- Launch Tracy
- No nwnx
- Docker
- No nwnx
- Use
Tracy client: shipped with NWN, find it in $NWN_INSTALL_DIRECTORY/bin/$OS/tracy/Tracy
Run a build of NWN with Tracy enabled: install the game via your game service, e.g. Steam.
- For servers running in docker environments you'll need an image with the correct nwserver binary installed
- Without nwnx: use a prebuilt image from https://github.com/urothis/nwserver/
- Expose the Tracy port to be able to connect. See configuration example for the port.
- Launch Tracy
- With nwnx
- : use a prebuilt image from https://github.com/nwnxee/unified/ if one exists for the target version of nwn. At the time of writing Tracy is only available in the preview build, for which there is no prebuilt nwnx image. To build your own image, you may use this script https://github.com/nwnxee/unified/blob/a4869fdb2047a4e8c94866e382c94056e0d13929/Scripts/buildimages.sh (TODO: update after PR merge/close)
- No nwnx
Configuration
Enable tracy in settings.tml
[instrumentation]
[instrumentation.tracy]
bind-all-interfaces = false
enabled = true
port = 8086
Profiling NWN
To profile using Tracy, follow the documentation referred to in the Tracy GitHub repository.
...
- Expose the Tracy port to be able to connect. See configuration example for the port.
- Launch Tracy
To understand Tracy in detail, refer to the official documentation in the Tracy GitHub repository.