From a40052ade3672d9e42d2b0e181ad1e60cf64c393 Mon Sep 17 00:00:00 2001 From: sin365 <353374337@qq.com> Date: Fri, 6 Dec 2024 19:10:15 +0800 Subject: [PATCH] netfix --- .../Assets/Plugins/AxiReplay/NetReplay.cs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/AxibugEmuOnline.Client/Assets/Plugins/AxiReplay/NetReplay.cs b/AxibugEmuOnline.Client/Assets/Plugins/AxiReplay/NetReplay.cs index d9f28f7..366ec90 100644 --- a/AxibugEmuOnline.Client/Assets/Plugins/AxiReplay/NetReplay.cs +++ b/AxibugEmuOnline.Client/Assets/Plugins/AxiReplay/NetReplay.cs @@ -7,7 +7,7 @@ namespace AxiReplay /// /// 客户端当前帧 /// - public int mCurrClientFrameIdx = int.MinValue; + public int mCurrClientFrameIdx = 0; /// /// 服务器远端当前帧 /// @@ -112,9 +112,18 @@ namespace AxiReplay public int GetSkipFrameCount() { - int skip = 0; + if(!bNetInit) + return 0; //本地队列差异高于服务器提前量的值 int moreNum = mDiffFrameCount - mRemoteForwardCount; + //if (mDiffFrameCount < 0 || mDiffFrameCount > 10000) + // return 0; + + ////游戏刚开始的一小段时间,直接追满 + //if (mCurrClientFrameIdx < 60) + // return moreNum; + + int skip = 0; if (mDiffFrameCount > short.MaxValue) skip = 0; else if (moreNum <= 1) skip = 0; else if (moreNum <= 3) skip = 2;