Compare commits
No commits in common. "58a432eb3c90f6c8d750d7c1375710785bd5d2fd" and "264d3609f193d1e6ebea7999178008964ddc84ce" have entirely different histories.
58a432eb3c
...
264d3609f1
@ -1,5 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace AxiReplay
|
||||
{
|
||||
@ -105,23 +104,6 @@ namespace AxiReplay
|
||||
data = mCurrReplay;
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
public int GetSkipFrameCount()
|
||||
{
|
||||
var frameGap = mDiffFrameCount;
|
||||
if (frameGap > 10000) return 0;
|
||||
|
||||
int skip = 0;
|
||||
|
||||
if (frameGap <= 2) skip = 0;
|
||||
if (frameGap > 2 && frameGap < 6) skip = 1 + 1;
|
||||
else if (frameGap > 7 && frameGap < 12) skip = 2 + 1;
|
||||
else if (frameGap > 13 && frameGap < 20) skip = 3 + 1;
|
||||
else skip = frameGap - 2;
|
||||
|
||||
|
||||
return skip;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -119,7 +119,7 @@ namespace AxibugEmuOnline.Client
|
||||
LastTestInput = rawData;
|
||||
App.log.Debug($"{DateTime.Now.ToString("hh:mm:ss.fff")} Input F:{App.roomMgr.netReplay.mCurrClientFrameIdx} | I:{rawData}");
|
||||
}
|
||||
App.roomMgr.SendRoomSingelPlayerInput(frameIndex, rawData);
|
||||
App.roomMgr.SendRoomSingelPlayerInput((uint)App.roomMgr.netReplay.mCurrClientFrameIdx, rawData);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -68,7 +68,14 @@ namespace AxibugEmuOnline.Client
|
||||
|
||||
private void FixEmulatorFrame()
|
||||
{
|
||||
var skipFrameCount = App.roomMgr.netReplay.GetSkipFrameCount();
|
||||
int skipFrameCount = 0;
|
||||
var frameGap = App.roomMgr.netReplay.mDiffFrameCount;
|
||||
if (frameGap > 10000) return;
|
||||
|
||||
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 - 2;
|
||||
|
||||
if (skipFrameCount > 0) App.log.Debug($"SKIP FRAME : {skipFrameCount}");
|
||||
for (int i = 0; i < skipFrameCount; i++)
|
||||
|
Loading…
Reference in New Issue
Block a user