Delay in synchronization in unity3d Unet
I'm working on an online multiplayer fps game with unity3d UNET HLAPI but i have sireus problem recently.
First of all, I must say that everything is fine. and I use commands , syncvars and sometimes rpc to sending data between clients and server. and my unity's version is 2018.
I run my servers in dedicated windows server by running EXE files. And players can play without any serious problems.
But after some time in sending data between players and the server occurs a delay.
For example when player one kill Player two , player one send a command to server that i killed player two and server do update syncvars by reducing health. But after a while in this type of synchronization (commands, syncvars, rpcs), the delay lasts a few seconds. (3 second, 4 or 5 second delay). Or when a client decide to walking , His walk is displayed to others by delay.
I add that I recently set the frame rate to 60 on my servers. Can there be anything to do with this problem?
I want to know if anyone has such an experience? Is there a way to prevent this problem?
Your answer
Follow this Question
Related Questions
Unet - spawning bullets, two issues 1 Answer
Problem with using Unity Spawnsystem (Unet / Multiplayer) 0 Answers
Synchronize child objects,multiplayer 0 Answers
Setting function to run on all clients but only work on the player that called it 0 Answers
[uNET] Instantiated gameobjects not syncing for new clients 1 Answer