Skip to content

Commit

Permalink
- removed redundant POSIX version of I_WaitVBL
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Nov 12, 2017
1 parent e50b012 commit 0db0f2f
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/posix/sdl/i_system.cpp
Expand Up @@ -105,18 +105,6 @@ void I_EndRead(void)
}


void I_WaitVBL (int count)
{
// I_WaitVBL is never used to actually synchronize to the
// vertical blank. Instead, it's used for delay purposes.
struct timespec delay, rem;
delay.tv_sec = count / 70;
/* Avoid overflow. Microsec res should be good enough. */
delay.tv_nsec = (count%70)*1000000/70 * 1000;
while(nanosleep(&delay, &rem) == -1 && errno == EINTR)
delay = rem;
}

//
// SetLanguageIDs
//
Expand Down

0 comments on commit 0db0f2f

Please sign in to comment.