aboutsummaryrefslogtreecommitdiffstats
path: root/code/sys/sys_win32.c
diff options
context:
space:
mode:
authortma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2008-07-21 22:02:54 +0000
committertma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2008-07-21 22:02:54 +0000
commit98228cce0dfe6591dc1b3a1c44852be0ca2adb4f (patch)
treebc6877fd3c06a4b8fc246d874737f195ec9713b5 /code/sys/sys_win32.c
parentae6f1c7f5d75be89cb177c114fb184f0ed34ef6e (diff)
downloadioquake3-aero-98228cce0dfe6591dc1b3a1c44852be0ca2adb4f.tar.gz
ioquake3-aero-98228cce0dfe6591dc1b3a1c44852be0ca2adb4f.zip
* 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 git-svn-id: svn://svn.icculus.org/quake3/trunk@1431 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/sys/sys_win32.c')
-rw-r--r--code/sys/sys_win32.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/code/sys/sys_win32.c b/code/sys/sys_win32.c
index 18724b3..fb924e6 100644
--- a/code/sys/sys_win32.c
+++ b/code/sys/sys_win32.c
@@ -519,6 +519,9 @@ Block execution for msec or until input is recieved.
*/
void Sys_Sleep( int msec )
{
+ if( msec == 0 )
+ return;
+
if( msec < 0 )
WaitForSingleObject( GetStdHandle( STD_INPUT_HANDLE ), INFINITE );
else