Rust
63 ratings
How to profile your game
By garry
How to get your server or client connected to the Unity profiler, so you can see what's causing issues.
3
2
2
2
   
Award
Favorite
Favorited
Unfavorite
Setting Up Your Server
If you want to profile your server you need to download a "debug" version. This version isn't slow or anything, it just enables the profiler. To do this you need to download how you do normally, except using the branch "stable-debug". For example, our dedicated server update script looks like this

@ShutdownOnFailedCommand 1 @NoPromptForPassword 1 login anonymous force_install_dir ../rustds app_update 258550 -beta stable-debug validate quit

You can change your release server to update to this version, and it shouldn't do any harm, and stay compatible with the live version.
Setting up your Client
To set your client up you just need to switch to the stable-debug branch.

Profiling
If you don't already have it, then download Unity[unity3d.com]. It's free.

Once installed open it up, you won't have a project, so just create a new one. Then go to Window > Profiler to open the profiler window.

If you're trying to profile your server then go to Active Profiler > Enter IP and enter its IP.

http://files.facepunch.com/garry/2015/July/13/2015-07-13_10-18-50.png

If you're profiling your client on the same computer, it will probably automatically connect. If not, select Active Profiler and choose the game.

http://files.facepunch.com/garry/2015/July/13/2015-07-13_10-20-52.png
Using the Profiler
Unity has guides on how to use the profiler here[docs.unity3d.com] so I won't go into too much detail.
19 Comments
citizen Aug 31 @ 9:35am 
garry u are cool for making gmod
sv1yat0slavnechaev May 13 @ 10:21am 
ooooooooooooooooooooooooooooooooooooooooooooooooo my god
𝕸𝕰𝕯𝕴𝕬𝕹 May 8, 2024 @ 12:25pm 
hello
Metallica enjoyer Apr 26, 2024 @ 11:00am 
what the sigma
N0rbbb Nov 9, 2022 @ 11:20am 
Bro I want all achievments on rust bro...
󠀡󠀡anti_pharma Sep 8, 2022 @ 1:12pm 
      █████████
      █▄█████▄█              ██████  ███████ ██████
      █▼▼▼▼▼█     ██      ██   ██  ██        ██   ██
     ██▌       ██  ██████  ██████  █████    ██████
      █▲▲▲▲▲█     ██     ██   ██  ██        ██ 
      █████████             ██   ██  ███████ ██
        ██     ██
Ether64 Mar 19, 2022 @ 11:22am 
1v1 me on rust you are trash
reggiano parmigiano May 30, 2021 @ 7:09pm 
âzzlack madafak
Drugm1x Feb 6, 2021 @ 1:46am 
You bustard I want all achievements
xSousa Sep 16, 2020 @ 3:57am 
cool