Big improvement of framerate (often several times bigger here)

by removing an useless 20ms delay between frames, which was stupid
since display::draw has already a smarter one.

PS: cleaning in next commmits, this was just for my "big optimization
in one char" collection :)
This commit is contained in:
Ali El Gariani 2010-09-14 05:37:35 +00:00
parent 648b25a794
commit 4497ed996f

View file

@ -217,7 +217,7 @@ void controller_base::play_slice(bool is_delay_enabled)
get_mouse_handler_base().mouse_update(browse_);
}
if (is_delay_enabled){
get_display().delay((SDL_GetAppState() & SDL_APPACTIVE) != 0 ? 20 : 200);
get_display().delay((SDL_GetAppState() & SDL_APPACTIVE) != 0 ? 0 : 200);
}
}
slice_end();