1
This commit is contained in:
parent
c0dcf6f26d
commit
e58f8f56d3
@ -33,6 +33,7 @@ behaviac::EBTStatus AndroidAgent::SearchEnemy(int range)
|
||||
|
||||
bool AndroidAgent::NetIsConnected()
|
||||
{
|
||||
return true;
|
||||
return owner_->GetWebSocket()->Connected() != 0;
|
||||
}
|
||||
|
||||
@ -231,6 +232,7 @@ static void ToPb(const glm::vec3& v, cs::MFVec3* pb_obj)
|
||||
behaviac::EBTStatus AndroidAgent::CoUpdateGame()
|
||||
{
|
||||
#if 1
|
||||
++Perf::Instance()->update_times;
|
||||
if (owner_->GetWebSocket()->Connected()) {
|
||||
if (a8::XGetTickCount() - last_dir_tick_ > 3000) {
|
||||
curr_dir_ = glm::vec3(0.0f, 0.0f, 1.0f);
|
||||
|
@ -25,7 +25,7 @@ void Perf::UnInit()
|
||||
void Perf::Output()
|
||||
{
|
||||
f8::UdpLog::Instance()->Info
|
||||
("perf login_ok:%d login_fail:%d enter_ok:%d enter_fail:%d connect_ok:%d connect_fail:%d chg_dir:%d send_move:%d",
|
||||
("perf login_ok:%d login_fail:%d enter_ok:%d enter_fail:%d connect_ok:%d connect_fail:%d chg_dir:%d send_move:%d udate:%d",
|
||||
{
|
||||
login_ok_times,
|
||||
login_fail_times,
|
||||
@ -34,6 +34,7 @@ void Perf::Output()
|
||||
connect_ok_times,
|
||||
connect_fail_times,
|
||||
chg_dir_times,
|
||||
send_move_times
|
||||
send_move_times,
|
||||
update_times
|
||||
});
|
||||
}
|
||||
|
@ -21,6 +21,7 @@ private:
|
||||
long long connect_fail_times = 0;
|
||||
long long chg_dir_times = 0;
|
||||
long long send_move_times = 0;
|
||||
long long update_times = 0;
|
||||
|
||||
private:
|
||||
void Output();
|
||||
|
Loading…
x
Reference in New Issue
Block a user