removed some debug prints
authorPerttu Ahola <celeron55@gmail.com>
Mon, 30 May 2011 21:16:58 +0000 (00:16 +0300)
committerPerttu Ahola <celeron55@gmail.com>
Mon, 30 May 2011 21:16:58 +0000 (00:16 +0300)
...and added support for simple time usage profiling in the last one.

src/server.cpp

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