removed some debug prints

...and added support for simple time usage profiling in the last one.
This commit is contained in:
Perttu Ahola 2011-05-31 00:16:58 +03:00
parent 223b379348
commit 41f07328c8
1 changed files with 4 additions and 4 deletions

View File

@ -379,8 +379,8 @@ void RemoteClient::GetNextBlocks(Server *server, float dtime,
{ {
m_nearest_unsent_reset_timer = 0; m_nearest_unsent_reset_timer = 0;
m_nearest_unsent_d = 0; m_nearest_unsent_d = 0;
dstream<<"Resetting m_nearest_unsent_d for " /*dstream<<"Resetting m_nearest_unsent_d for "
<<server->getPlayerName(peer_id)<<std::endl; <<server->getPlayerName(peer_id)<<std::endl;*/
} }
//s16 last_nearest_unsent_d = m_nearest_unsent_d; //s16 last_nearest_unsent_d = m_nearest_unsent_d;
@ -697,9 +697,9 @@ void RemoteClient::GetNextBlocks(Server *server, float dtime,
{ {
// Pause time in seconds // Pause time in seconds
m_nothing_to_send_pause_timer = 1.0; m_nothing_to_send_pause_timer = 1.0;
dstream<<"nothing to send to " /*dstream<<"nothing to send to "
<<server->getPlayerName(peer_id) <<server->getPlayerName(peer_id)
<<" (d="<<d<<")"<<std::endl; <<" (d="<<d<<")"<<std::endl;*/
} }
} }
else else