mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-25 13:41:05 +00:00
- removed redundant POSIX version of I_WaitVBL
This commit is contained in:
parent
e50b012c87
commit
0db0f2f7b9
1 changed files with 0 additions and 12 deletions
|
@ -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
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue