1
This commit is contained in:
parent
1967a9836c
commit
4945153670
@ -86,11 +86,11 @@ namespace f8
|
|||||||
f8::MsgQueue::Instance()->Update();
|
f8::MsgQueue::Instance()->Update();
|
||||||
DispatchNetMsg();
|
DispatchNetMsg();
|
||||||
user_app->Update(delta_time);
|
user_app->Update(delta_time);
|
||||||
Schedule();
|
|
||||||
a8::tick_t end_tick = a8::XGetTickCount();
|
a8::tick_t end_tick = a8::XGetTickCount();
|
||||||
//if (end_tick - begin_tick > PerfMonitor::Instance()->max_run_delay_time) {
|
if (end_tick - begin_tick > max_run_delay_time_) {
|
||||||
//PerfMonitor::Instance()->max_run_delay_time = end_tick - begin_tick;
|
max_run_delay_time_ = end_tick - begin_tick;
|
||||||
//}
|
}
|
||||||
|
Schedule();
|
||||||
delta_time = end_tick - begin_tick;
|
delta_time = end_tick - begin_tick;
|
||||||
}
|
}
|
||||||
UnInit();
|
UnInit();
|
||||||
|
3
f8/app.h
3
f8/app.h
@ -61,6 +61,8 @@ namespace f8
|
|||||||
int GetArgc() { return argc_; }
|
int GetArgc() { return argc_; }
|
||||||
long long GetMsgNodeSize() { return msgnode_size_; }
|
long long GetMsgNodeSize() { return msgnode_size_; }
|
||||||
long long GetWorkingMsgNodeSize() { return working_msgnode_size_; }
|
long long GetWorkingMsgNodeSize() { return working_msgnode_size_; }
|
||||||
|
long long GetMaxRunDelayTime() { return max_run_delay_time_; }
|
||||||
|
void ResetMaxRunDelayTime() { max_run_delay_time_ = 0; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool Init();
|
bool Init();
|
||||||
@ -78,6 +80,7 @@ namespace f8
|
|||||||
int exit_code_ = 0;
|
int exit_code_ = 0;
|
||||||
volatile bool terminated_ = false;
|
volatile bool terminated_ = false;
|
||||||
int nowtime_ = 0;
|
int nowtime_ = 0;
|
||||||
|
long long max_run_delay_time_ = 0;
|
||||||
|
|
||||||
int zone_id_ = 0;
|
int zone_id_ = 0;
|
||||||
int node_id_ = 0;
|
int node_id_ = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user