1
This commit is contained in:
parent
7e8a0b31bb
commit
fb5ff4c375
@ -1375,6 +1375,7 @@ void Human::SendUpdateMsg()
|
|||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
long long begin_tick1 = a8::XGetTickCount();
|
long long begin_tick1 = a8::XGetTickCount();
|
||||||
long long end_tick1 = a8::XGetTickCount();
|
long long end_tick1 = a8::XGetTickCount();
|
||||||
|
int sent_bytes = 0;
|
||||||
#endif
|
#endif
|
||||||
if (!follow_target_ && !a8::HasBitFlag(status, CS_Disable)) {
|
if (!follow_target_ && !a8::HasBitFlag(status, CS_Disable)) {
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
@ -1408,6 +1409,9 @@ void Human::SendUpdateMsg()
|
|||||||
begin_tick = a8::XGetTickCount();
|
begin_tick = a8::XGetTickCount();
|
||||||
#endif
|
#endif
|
||||||
NotifyObservers(msg, active_player_data_pb);
|
NotifyObservers(msg, active_player_data_pb);
|
||||||
|
#ifdef DEBUG
|
||||||
|
sent_bytes += msg->ByteSize() + active_player_data_pb->ByteSize();
|
||||||
|
#endif
|
||||||
delete msg;
|
delete msg;
|
||||||
|
|
||||||
if (active_player_data_pb) {
|
if (active_player_data_pb) {
|
||||||
@ -1420,6 +1424,12 @@ void Human::SendUpdateMsg()
|
|||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
end_tick1 = a8::XGetTickCount();
|
end_tick1 = a8::XGetTickCount();
|
||||||
if (end_tick1 - begin_tick1 > 100) {
|
if (end_tick1 - begin_tick1 > 100) {
|
||||||
|
f8::UdpLog::Instance()->Warning
|
||||||
|
("SendUpdateMsg sent_bytes:%d observers.size:%d",
|
||||||
|
{
|
||||||
|
sent_bytes,
|
||||||
|
observers_.size()
|
||||||
|
});
|
||||||
A8_ABORT();
|
A8_ABORT();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user