Remove forced delay from display::draw();

this was causing "double" delays, and isn't the proper spot for
delaying anyway.
This commit is contained in:
Dominic Bolin 2006-07-17 21:20:40 +00:00
parent 1f87f69510
commit bedc8b4348

View file

@ -901,10 +901,6 @@ void display::draw(bool update,bool force)
const int current_time = SDL_GetTicks();
const int wait_time = lastDraw_ + time_between_draws - current_time;
//force a wait for 10 ms every frame.
//TODO: review whether this is the correct thing to do
delay(maximum<int>(10,wait_time));
if(update) {
lastDraw_ = SDL_GetTicks();