1
This commit is contained in:
parent
b1b9b8c3b9
commit
7f456a2fea
@ -49,7 +49,8 @@ struct UdpMsgNode
|
|||||||
|
|
||||||
static void SavePerfLog()
|
static void SavePerfLog()
|
||||||
{
|
{
|
||||||
f8::UdpLog::Instance()->Info("max_run_delay_time:%d max_timer_idle:%d "
|
f8::UdpLog::Instance()->Info
|
||||||
|
("max_run_delay_time:%d max_timer_idle:%d "
|
||||||
"in_data_size:%d out_data_size:%d msgnode_size:%d udp_msgnode_size:%d "
|
"in_data_size:%d out_data_size:%d msgnode_size:%d udp_msgnode_size:%d "
|
||||||
"read_count:%d max_login_time:%d "
|
"read_count:%d max_login_time:%d "
|
||||||
"max_join_time:%d tcp_count:%d udp_count:%d down_stream_count:%d",
|
"max_join_time:%d tcp_count:%d udp_count:%d down_stream_count:%d",
|
||||||
@ -58,7 +59,7 @@ static void SavePerfLog()
|
|||||||
App::Instance()->GetPerf().max_timer_idle,
|
App::Instance()->GetPerf().max_timer_idle,
|
||||||
App::Instance()->GetPerf().in_data_size,
|
App::Instance()->GetPerf().in_data_size,
|
||||||
App::Instance()->GetPerf().out_data_size,
|
App::Instance()->GetPerf().out_data_size,
|
||||||
App::Instance()->GetMsgNodeSize(),
|
f8::App::Instance()->GetMsgNodeSize(),
|
||||||
App::Instance()->GetUdpMsgNodeSize(),
|
App::Instance()->GetUdpMsgNodeSize(),
|
||||||
App::Instance()->GetPerf().read_count,
|
App::Instance()->GetPerf().read_count,
|
||||||
App::Instance()->GetPerf().max_login_time,
|
App::Instance()->GetPerf().max_login_time,
|
||||||
@ -162,8 +163,6 @@ void App::Update()
|
|||||||
|
|
||||||
void App::QuickExecute()
|
void App::QuickExecute()
|
||||||
{
|
{
|
||||||
f8::Timer::Instance()->Update();
|
|
||||||
f8::MsgQueue::Instance()->Update();
|
|
||||||
DispatchUdpMsg();
|
DispatchUdpMsg();
|
||||||
LongSessionMgr::Instance()->Update();
|
LongSessionMgr::Instance()->Update();
|
||||||
}
|
}
|
||||||
|
@ -29,7 +29,6 @@ public:
|
|||||||
void AddUdpMsg(a8::UdpPacket* pkt);
|
void AddUdpMsg(a8::UdpPacket* pkt);
|
||||||
|
|
||||||
PerfMonitor& GetPerf() { return perf_; }
|
PerfMonitor& GetPerf() { return perf_; }
|
||||||
int GetMsgNodeSize() { return msgnode_size_;}
|
|
||||||
int GetUdpMsgNodeSize() { return udp_msgnode_size_;}
|
int GetUdpMsgNodeSize() { return udp_msgnode_size_;}
|
||||||
|
|
||||||
int GetGameId() const;
|
int GetGameId() const;
|
||||||
@ -54,9 +53,7 @@ private:
|
|||||||
UdpMsgNode* udp_bot_node_ = nullptr;
|
UdpMsgNode* udp_bot_node_ = nullptr;
|
||||||
UdpMsgNode* udp_work_node_ = nullptr;
|
UdpMsgNode* udp_work_node_ = nullptr;
|
||||||
|
|
||||||
int msgnode_size_ = 0 ;
|
|
||||||
int udp_msgnode_size_ = 0 ;
|
int udp_msgnode_size_ = 0 ;
|
||||||
int working_msgnode_size_ = 0;
|
|
||||||
int udp_working_msgnode_size_ = 0;
|
int udp_working_msgnode_size_ = 0;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
2
third_party/f8
vendored
2
third_party/f8
vendored
@ -1 +1 @@
|
|||||||
Subproject commit e6570ff2d38b71d20328d875d02237a3a908512d
|
Subproject commit 39cf53ed693b0c6e6d9119c38b894013ac9716e6
|
Loading…
x
Reference in New Issue
Block a user