Skip to content

Commit f4f8578

Browse files
committed
up
1 parent 0ba1d5a commit f4f8578

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

KBEMain.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public class KBEMain : MonoBehaviour
1919
public KBEngineApp.CLIENT_TYPE clientType = KBEngineApp.CLIENT_TYPE.CLIENT_TYPE_MINI;
2020
public string persistentDataPath = "Application.persistentDataPath";
2121
public bool syncPlayer = true;
22-
public int thread_Update_HZ = 10;
22+
public int threadUpdateHZ = 10;
2323
public int SEND_BUFFER_MAX = (int)KBEngine.NetworkInterface.TCP_PACKET_MAX;
2424
public int RECV_BUFFER_MAX = (int)KBEngine.NetworkInterface.TCP_PACKET_MAX;
2525

@@ -56,7 +56,7 @@ public virtual void initKBEngine()
5656
args.persistentDataPath = persistentDataPath;
5757

5858
args.syncPlayer = syncPlayer;
59-
args.thread_Update_HZ = thread_Update_HZ;
59+
args.threadUpdateHZ = threadUpdateHZ;
6060

6161
args.SEND_BUFFER_MAX = (UInt32)SEND_BUFFER_MAX;
6262
args.RECV_BUFFER_MAX = (UInt32)RECV_BUFFER_MAX;

KBEngine.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2375,7 +2375,7 @@ public void run()
23752375
public KBEThread kbethread = null;
23762376

23772377
// 主循环频率
2378-
public static int thread_Update_HZ = 10;
2378+
public static int threadUpdateHZ = 10;
23792379

23802380
// 插件是否退出
23812381
private bool _isbreak = false;
@@ -2391,7 +2391,7 @@ public override bool initialize(KBEngineArgs args)
23912391
{
23922392
base.initialize(args);
23932393

2394-
KBEngineAppThread.thread_Update_HZ = args.thread_Update_HZ;
2394+
KBEngineAppThread.threadUpdateHZ = args.threadUpdateHZ;
23952395

23962396
kbethread = new KBEThread(this);
23972397
_t = new Thread(new ThreadStart(kbethread.run));
@@ -2439,7 +2439,7 @@ void _thread_wait()
24392439
{
24402440
TimeSpan span = DateTime.Now - _lasttime;
24412441

2442-
int diff = (int)(1000.0 / thread_Update_HZ - span.Milliseconds);
2442+
int diff = (int)(1000.0 / threadUpdateHZ - span.Milliseconds);
24432443

24442444
if(diff < 0)
24452445
diff = 0;

0 commit comments

Comments
 (0)