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:
parent
648b25a794
commit
4497ed996f
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue