The timeout value was wrong.
This commit is contained in:
parent
5101cadc15
commit
4fd3d89b24
1 changed files with 1 additions and 1 deletions
|
@ -974,7 +974,7 @@ global void WaitEventsOneFrame(const EventCallback* callbacks)
|
|||
//
|
||||
ticks=X11GetTicks();
|
||||
if( !VideoInterrupts && ticks+11<NextFrameTicks ) {
|
||||
tv.tv_usec=ticks*1000;
|
||||
tv.tv_usec=(NextFrameTicks-ticks)*1000;
|
||||
}
|
||||
while( ticks>=NextFrameTicks ) {
|
||||
++VideoInterrupts;
|
||||
|
|
Loading…
Add table
Reference in a new issue