mirror of
https://github.com/SWG-Source/client-tools.git
synced 2026-10-13 05:12:52 -04:00
set mem limit to 2048mb globally which is the max for msvc 32 bit apps;
make the minimum and maximum framerate user configurable, make the client and setup app DPI aware (no more turning off scaling!), and finally rebadge these as 2.0/2.0b
This commit is contained in:
@@ -90,12 +90,8 @@ void ConfigSharedFoundation::install (const Defaults &defaults)
|
||||
|
||||
KEY_BOOL(demoMode, defaults.demoMode);
|
||||
|
||||
ms_frameRateLimit = 144.f;
|
||||
ms_minFrameRate = 30.f;
|
||||
|
||||
KEY_FLOAT(frameRateLimit, 144.f);
|
||||
|
||||
KEY_FLOAT(minFrameRate, 30.f);
|
||||
KEY_FLOAT(frameRateLimit, defaults.frameRateLimit);
|
||||
KEY_FLOAT(minFrameRate, defaults.minFrameRate);
|
||||
|
||||
KEY_BOOL(useRemoteDebug, false);
|
||||
KEY_INT(defaultRemoteDebugPort, 4445);
|
||||
|
||||
@@ -21,6 +21,7 @@ public:
|
||||
int screenWidth;
|
||||
bool windowed;
|
||||
real frameRateLimit;
|
||||
real minFrameRate;
|
||||
bool demoMode;
|
||||
bool verboseWarnings;
|
||||
};
|
||||
|
||||
@@ -223,6 +223,7 @@ void SetupSharedFoundation::install(const Data &data)
|
||||
{
|
||||
ConfigSharedFoundation::Defaults defaults;
|
||||
defaults.frameRateLimit = data.frameRateLimit;
|
||||
defaults.minFrameRate = data.minFrameRate;
|
||||
defaults.demoMode = data.demoMode;
|
||||
defaults.verboseWarnings = data.verboseWarnings;
|
||||
ConfigSharedFoundation::install(defaults);
|
||||
@@ -338,6 +339,7 @@ void SetupSharedFoundation::Data::setupGameDefaults()
|
||||
productRegistryKey = NULL;
|
||||
|
||||
frameRateLimit = CONST_REAL(0);
|
||||
minFrameRate = CONST_REAL(0);
|
||||
|
||||
lostFocusCallback = NULL;
|
||||
|
||||
@@ -370,6 +372,7 @@ void SetupSharedFoundation::Data::setupConsoleDefaults()
|
||||
productRegistryKey = NULL;
|
||||
|
||||
frameRateLimit = CONST_REAL(0);
|
||||
minFrameRate = CONST_REAL(0);
|
||||
|
||||
lostFocusCallback = NULL;
|
||||
|
||||
@@ -402,6 +405,7 @@ void SetupSharedFoundation::Data::setupMfcDefaults()
|
||||
productRegistryKey = NULL;
|
||||
|
||||
frameRateLimit = CONST_REAL(0);
|
||||
minFrameRate = CONST_REAL(0);
|
||||
|
||||
demoMode = false;
|
||||
verboseWarnings = false;
|
||||
|
||||
@@ -48,7 +48,7 @@ public:
|
||||
const char *productRegistryKey;
|
||||
|
||||
real frameRateLimit;
|
||||
|
||||
real minFrameRate;
|
||||
|
||||
bool demoMode;
|
||||
|
||||
|
||||
@@ -217,7 +217,7 @@ namespace MemoryManagerNamespace
|
||||
bool ms_installed;
|
||||
bool ms_limitSet;
|
||||
bool ms_hardLimit;
|
||||
int ms_limitMegabytes = 2047;
|
||||
int ms_limitMegabytes = 2048;
|
||||
SystemAllocation * ms_firstSystemAllocation;
|
||||
int ms_numberOfSystemAllocations;
|
||||
int ms_systemMemoryAllocatedMegabytes;
|
||||
|
||||
Reference in New Issue
Block a user