04-29-2023, 08:52 PM
8 hours ago, nicolasg said:
There is no ping system, at least not public, most of the idiots show the rendering time, thinking that it is the latency between client server...
In client side, speaking about November source there is a:
ENGINE_API INDEX iPing;
In Engine.cpp that is used inside Player.cpp (.es)
{for (INDEX iPlayer = 0; iPlayer < ctPlayers; iPlayer++) {
CTString strLine;
CPlayer* penPlayer = _apenPlayers[iPlayer];
INDEX iPing = ceil(penPlayer->en_tmPing * 1000.0f);
CTString strName = penPlayer->GetPlayerName();
strStats += PadStringRight(CTString(0, "%d", iPlayer + 1), ctRankChars) + " ";
strStats += PadStringLeft(CTString(0, "%d", iPing), ctPingChars) + " ";
strStats += PadStringRight(strName, ctNameChars) + " ";
strStats += "\n";
}}
This label in this case is completely misleading?
BTW It's possible to implement natively using Boost Asio, correct me If I'm wrong.
This is pretty old but make sens:
2

