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:
parent
1f87f69510
commit
bedc8b4348
1 changed files with 0 additions and 4 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue