From 5f9d91f0621f9a0a1a56496381e50beb96141c9f Mon Sep 17 00:00:00 2001 From: Thomas Perl Date: Sat, 23 May 2009 15:39:39 +0200 Subject: [PATCH] Silence App.cpp's debugging output --- App.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/App.cpp b/App.cpp index 35bebf2..eb12b3e 100644 --- a/App.cpp +++ b/App.cpp @@ -193,7 +193,7 @@ private: for ( int i=0; idraw( *m_window, area ); } - m_window->drawRect( area, 0x00ff00, false ); + //m_window->drawRect( area, 0x00ff00, false ); m_window->update( area ); } @@ -258,17 +258,17 @@ private: if ( sleepMs > 1 && renderRate < MAX_RENDER_RATE ) { renderRate++; - printf("increasing render rate to %dfps\n",renderRate); +// printf("increasing render rate to %dfps\n",renderRate); sleepMs = lastTick + 1000/renderRate - SDL_GetTicks(); } if ( sleepMs > 0 ) { SDL_Delay( sleepMs ); } else { - printf("overrun %dms\n",-sleepMs); +// printf("overrun %dms\n",-sleepMs); if ( renderRate > MIN_RENDER_RATE ) { renderRate--; - printf("decreasing render rate to %dfps\n",renderRate); +// printf("decreasing render rate to %dfps\n",renderRate); } else if ( iterationRate > 30 ) { //slow down simulation time to maintain fps?? } -- 2.11.4.GIT