From 37affa93b62ed8c1fffdd9abbf3a1313329c3b09 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 7 Oct 2006 08:04:02 +0000 Subject: [PATCH] simplify BoostAppPriority -> g_bNeverBoostAppPriority --- stepmania/src/GameLoop.cpp | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/stepmania/src/GameLoop.cpp b/stepmania/src/GameLoop.cpp index 2666d2d265..7a2912fc63 100644 --- a/stepmania/src/GameLoop.cpp +++ b/stepmania/src/GameLoop.cpp @@ -24,8 +24,7 @@ static RageTimer g_GameplayTimer; -enum BoostAppPriority { BOOST_NO, BOOST_YES, BOOST_AUTO }; /* auto = do whatever is appropriate for the arch. */ -static Preference g_BoostAppPriority( "BoostAppPriority", BOOST_AUTO ); +static Preference g_bNeverBoostAppPriority( "NeverBoostAppPriority", false ); /* experimental: force a specific update rate. This prevents big * animation jumps on frame skips. 0 to disable. */ @@ -64,12 +63,11 @@ static void CheckGameLoopTimerSkips( float fDeltaTime ) static bool ChangeAppPri() { - if( g_BoostAppPriority.Get() == BOOST_NO ) + if( g_bNeverBoostAppPriority.Get() ) return false; // if using NTPAD don't boost or else input is laggy #if defined(_WINDOWS) - if( g_BoostAppPriority == BOOST_AUTO ) { vector vDevices; @@ -89,13 +87,12 @@ static bool ChangeAppPri() } #endif - /* If -1 and this is a debug build, don't. It makes the debugger sluggish. */ -#ifdef DEBUG - if( g_BoostAppPriority == BOOST_AUTO ) - return false; -#endif - + /* If this is a debug build, don't. It makes the VC debugger sluggish. */ +#if defined(WIN32) && defined(DEBUG) + return false; +#else return true; +#endif } static void CheckFocus()