Compare commits

...

3 Commits

Author SHA1 Message Date
4dac834555 Merge pull request 'master' (#50) from Alienjack/AxibugEmuOnline:master into master
Reviewed-on: #50
2024-11-11 20:21:01 +08:00
ALIENJACK\alien
11d7f681b0 Merge branch 'master' of http://git.axibug.com/sin365/AxibugEmuOnline 2024-11-11 20:19:59 +08:00
ALIENJACK\alien
195afdafb8 增加追帧机制 2024-11-11 20:19:50 +08:00

View File

@ -72,10 +72,10 @@ namespace AxibugEmuOnline.Client
var frameGap = App.roomMgr.netReplay.mDiffFrameCount;
if (frameGap > 10000) return;
if (frameGap > 3 && frameGap < 6) skipFrameCount = 1;
if (frameGap > 2 && frameGap < 6) skipFrameCount = 1;
else if (frameGap > 7 && frameGap < 12) skipFrameCount = 2;
else if (frameGap > 13 && frameGap < 20) skipFrameCount = 3;
else skipFrameCount = frameGap - 3;
else skipFrameCount = frameGap - 2;
if (skipFrameCount > 0) App.log.Debug($"SKIP FRAME : {skipFrameCount}");
for (int i = 0; i < skipFrameCount; i++)