* 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:
parent
4ceb51e6ba
commit
0124371c01
7 changed files with 39 additions and 53 deletions
|
@ -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 )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue