mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2025-12-28 10:52:17 +00:00
attempt fix weird net jitter
This commit is contained in:
parent
4a71c1f733
commit
c648976db0
1 changed files with 5 additions and 3 deletions
|
|
@ -208,9 +208,11 @@ class MoveManager {
|
|||
if (queuedMoves.length > serverMaxMoveListSize
|
||||
|| (serverAvgMoveListSize > serverTargetMoveListSize + serverMoveListSizeSlack
|
||||
&& queuedMoves.length > serverTargetMoveListSize)) {
|
||||
var dropAmt = queuedMoves.length - serverTargetMoveListSize;
|
||||
while (dropAmt-- > 0) {
|
||||
queuedMoves.pop();
|
||||
if (queuedMoves.length > serverMaxMoveListSize) {
|
||||
var dropAmt = queuedMoves.length - serverTargetMoveListSize;
|
||||
while (dropAmt-- > 0) {
|
||||
queuedMoves.pop();
|
||||
}
|
||||
}
|
||||
serverAvgMoveListSize = serverTargetMoveListSize;
|
||||
// serverAbnormalMoveCount++;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue