From d92ca1d755c2fb7638b5b1f35ca96607840d53b3 Mon Sep 17 00:00:00 2001 From: Ilari Liusvaara Date: Sat, 29 Oct 2011 18:45:50 +0300 Subject: [PATCH] Oops, remove some mistakenly left in debug prints --- SDL/window-sdl.cpp | 4 ---- generic/mainloop.cpp | 4 ---- 2 files changed, 8 deletions(-) diff --git a/SDL/window-sdl.cpp b/SDL/window-sdl.cpp index 49c0cc4b..3d5eb806 100644 --- a/SDL/window-sdl.cpp +++ b/SDL/window-sdl.cpp @@ -27,8 +27,6 @@ // Limit the emulator to ~30fps. #define MIN_UPDATE_TIME 33333 -extern uint64_t in_paint_time; - namespace { bool wait_canceled; @@ -1268,7 +1266,6 @@ namespace void window::notify_screen_update(bool full) throw() { - uint64_t tnow = get_utime(); bool resize_screen = false; if(!is_time_for_screen_update(full)) { return; @@ -1313,7 +1310,6 @@ void window::notify_screen_update(bool full) throw() SDL_UnlockSurface(hwsurf); //SDL_BlitSurface(swsurf, NULL, hwsurf, NULL); SDL_UpdateRect(hwsurf, 0, 0, 0, 0); - in_paint_time += (get_utime() - tnow); } void poll_inputs_internal() throw(std::bad_alloc) diff --git a/generic/mainloop.cpp b/generic/mainloop.cpp index 5954c3ec..72f903c6 100644 --- a/generic/mainloop.cpp +++ b/generic/mainloop.cpp @@ -36,9 +36,6 @@ void update_movie_state(); -uint64_t in_paint_time; -uint64_t frames = 0; - namespace { enum advance_mode @@ -169,7 +166,6 @@ controls_t movie_logic::update_controls(bool subframe) throw(std::bad_alloc, std } window::notify_screen_update(); - std::cerr << "Average time in redraw: " << (in_paint_time / (++frames)) << std::endl; window::poll_inputs(); if(!subframe && pending_reset_cycles >= 0) set_curcontrols_reset(pending_reset_cycles); -- 2.11.4.GIT