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 command
profiler 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

image

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

image

Once the profile is complete, it will display that it is no longer recording

image

 

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 command
profiler saveJSON filename.json
This will save a file to the folder where your run.bat file lives.

image

Once you have saved the file, copy it to your computer into a folder you can navigate to easily and complete the following steps

  1. Open a new tab on Google Chrome
  2. Open the dev tools by pressing CTRL + SHIFT + I or Settings > More Tools > Developer Tools
  3. Select the Performance tab

image

4. Right click anywhere on the panel, and select load profile

image

  1. Navigate to the saved file, open it and continue the rest of the guide

 

Reading the Profiles

image

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.

image

 

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.

image

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.

Hai trovato utile questa risposta? 2 Utenti hanno trovato utile questa risposta (2 Voti)