Hello,
I have a big issue with my game…
I have a big latency on my server so answer take 1s to arrive.
Some explainations :
My game is a multiplayer game. I use a dedicated server.
I have 2 project, one for developping functionnalities and the other for the level design.
My game was totally tested in october, and all the main bugs was corrected (I thought). But now, I just tested a new functionnality (really stupid little functionnality…) and discover that my game have 1 second of latency each time I do a run on server.
Some examples :
The player press Left mouse button to attack → 1 second later the animation of attack is show.
If my player is in a trap and get damage, it takes again 1 second to take the damage and eventually play the death anim.
The teleportation also make 1 second to happen…
Everything is like this ! I know it is one second thanks to print strings and logs.
I think it is caused by something I did in october but I have seriously no idea of what ! (and I think you have not any idea too since you are not psychic ! ) but how can I try to find what is causing the problem, I have seen that the command “stat net” exist but it doesn’t help a lot… Is there any other monitoring solution that I can launch during the game with the console command to try to understand what is causing the lag ? Or something that can help me to have clue ?
I have verified my server connexion and my computer connexion but all is ok.
Thank you a lot for your help and your time.
EDIT :
I just tried to display more Log about NetTraffic etc, so I turn LogNet in veryverbose to see if I can see something interesting.
I have seen that I have a lot of “… requesting new net update”, the “…” depend, it can be worldSettings, or some of my NPC, my AI, or other actors. But there is really a lot ! In one second, I maybe have like 500 things asking for that… But I don’t know what it means exactly.
I also tried stat net command (but I don’t know if it is good, I launch it from the client using the console command). But it don’t help me a lot. Everything is at 0 except :
Num actor 4778.00
Out rate 2756.00
Ping 572.00
Num network actor 127.00
Unmapped replicators 98.00
Channels 73.00
Num Actors Channel 71.00
In rate(bytes) 59.00
Out Bunches 40.00
Packet 39.00
In bunches 1.00
There is nothing else…