mirror of
https://github.com/genxium/DelayNoMore
synced 2024-12-26 03:39:00 +00:00
Minor update.
This commit is contained in:
parent
09376b827d
commit
b0f37d2237
@ -97,7 +97,7 @@ NetworkDoctor.prototype.isTooFast = function(mapIns) {
|
|||||||
if (mapIns.lastIndividuallyConfirmedInputFrameId[k] >= minInputFrameIdFront) continue;
|
if (mapIns.lastIndividuallyConfirmedInputFrameId[k] >= minInputFrameIdFront) continue;
|
||||||
minInputFrameIdFront = mapIns.lastIndividuallyConfirmedInputFrameId[k];
|
minInputFrameIdFront = mapIns.lastIndividuallyConfirmedInputFrameId[k];
|
||||||
}
|
}
|
||||||
if ((selfInputFrameIdFront > minInputFrameIdFront) && ((selfInputFrameIdFront - minInputFrameIdFront) > (mapIns.inputFrameUpsyncDelayTolerance >> 1))) {
|
if ((selfInputFrameIdFront > minInputFrameIdFront) && ((selfInputFrameIdFront - minInputFrameIdFront) > (mapIns.inputFrameUpsyncDelayTolerance + 1))) {
|
||||||
// first comparison condition is to avoid numeric overflow
|
// first comparison condition is to avoid numeric overflow
|
||||||
console.log(`Game logic ticking too fast, selfInputFrameIdFront=${selfInputFrameIdFront}, minInputFrameIdFront=${minInputFrameIdFront}, inputFrameUpsyncDelayTolerance=${mapIns.inputFrameUpsyncDelayTolerance}`);
|
console.log(`Game logic ticking too fast, selfInputFrameIdFront=${selfInputFrameIdFront}, minInputFrameIdFront=${minInputFrameIdFront}, inputFrameUpsyncDelayTolerance=${mapIns.inputFrameUpsyncDelayTolerance}`);
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user