* Use Sys_Sleep to limit FPS, which will save CPU
* Add com_maxfpsUnfocused and com_maxfpsMinimized; self explanatory * Fix reopening of bug 3703, I hope
This commit is contained in:
1 parent
4ceb51e6ba
commit
0124371c01
7 files changed
+39
-53
No files matched your search
@@ -463,6 +463,9 @@ void Sys_Sleep( int msec )
|
||||
{
|
||||
fd_set fdset;
|
||||
|
||||
if( msec == 0 )
|
||||
return;
|
||||
|
||||
FD_ZERO(&fdset);
|
||||
FD_SET(fileno(stdin), &fdset);
|
||||
if( msec < 0 )
|
||||
|
||||
Reference in new issue
Block a user