If you are expirencing fivme server thread hitch warnings the most likely cause is a script your using here is how to find out the script
Prerequisites
To ensure profiler works, make sure your client is up to date, and you are using the latest server artifacts. You also need google chrome installed to properly view the profile. If you are viewing the profile without saving first make sure you keep your game / the server open and running!
Usage of the Profiler
To begin the profiling, open your console (the server console), and type the following commandprofiler record (frames to record)
A good starting point is 500 frames, as this captures things over a substantial period of time. All going well you should see a message which says start
To check the status of the profiler, such as whether the capture is active, and how many frame it has captured, use profiler status
. It will display something like this
Once the profile is complete, it will display that it is no longer recording
Viewing the Profiles
You can immediately view the capture using profiler view, which will open google chrome and begin loading the profile. NOTE: Viewing profiles server side will not automatically load chrome, you will need to copy the provided link to chrome.
Saving a Profile
You can save a profile by using the commandprofiler saveJSON filename.json
This will save a file to the folder where your run.bat file lives.
Once you have saved the file, copy it to your computer into a folder you can navigate to easily and complete the following steps
- Open a new tab on Google Chrome
- Open the dev tools by pressing CTRL + SHIFT + I or
Settings > More Tools > Developer Tools
- Select the
Performance
tab
4. Right click anywhere on the panel, and select load profile
- Navigate to the saved file, open it and continue the rest of the guide
Reading the Profiles
When you open the profile, you will be presented with a similar screen (I recommend adjusting the size to view it easier). Starting from the top bar, we have the time stamp of the recording, followed by an FPS graph (green) and finally a CPU time graph (yellow, this one is important). This can be used to identify peaks, which correlate to frame drops / micro stuttering or server hitches
Server Hitch Example
We can identify server hitches by sudden spikes in the CPU time, which exceed normal frames.
Viewing Specific Frame Information
Scrolling on the time bar will cause the whole display to zoom in on the specific period of time your cursor is hovering on. At this point, you will want to zoom in on specific frames, such as the one below.
The information above shows the recording timestamp, the total frame time (green section) and the script threads which executed that frame. Hovering over the frame time also displays average FPS at that time.
Viewing the resource tick breakdown
Next, zoom on the yellow resource tick event so we can identify what is exactly causing the FPS drop / loss.

debug
which has a problematic thread causing significant performance loss. Hovering over any of the events will outline how many ms it is taking to process this thread, and display the file and even line numbers of the thread causing problems.Hope this helps people, if you need a hand or better explanation of something with the profiler, if you need any help feel free to reach out to us.