• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

OTCv8 ping random

Vagnerking

Active Member
Joined
Jan 20, 2023
Messages
30
Reaction score
30
GitHub
Vagnerking
I'm running the server locally, but the ping is random, it starts very low, around 2ms~6ms, then gradually increases and reaches 60ms, reaching 60ms it resets and returns to 2ms.

I implemented these commits to my otx 2:



and




result:

1732822745682.webp



1732822769489.webp

1732822794000.webp


after this ping, it returns to 2ms



I have attached the changed files.
 

Attachments

I removed the GameExtendedClientPing function and added the standard ping function from tfs 1.4.
Extended ping is processed by C++ dispatcher thread (as all other packets), not network thread (as only ping packet does in TFS 1.x). So GameExtendedClientPing ping visible in client shows lags on OTS.
It's not a bug, it's a feature. Players see real lag they will get when they do any action ex. make step. If it lags with extended ping, it will lag the same, when player try to walk.

If it jumps 5-10 ms, it can be related to delayed packets send in OTS engine (OTS collects packets of given player up to 10 ms to send them as 1 network packet and reduce network usage) - you can run with map click, to increase number of packets send to client, so there will be less delayed packets.
If it jumps over 20 ms+, it means that your OTS engine is lagging.
 
Last edited:
Back
Top