diff --git a/How-To-Increase-The-Ram-Quota-For-The-SWG-Client.md b/How-To-Increase-The-Ram-Quota-For-The-SWG-Client.md new file mode 100644 index 0000000..b0b3ca3 --- /dev/null +++ b/How-To-Increase-The-Ram-Quota-For-The-SWG-Client.md @@ -0,0 +1,118 @@ +![](https://i.imgur.com/dd7o90U.jpg) +![](https://i.imgur.com/odChuyV.jpg) + + +=============================================================== +Original discussion thread text for search result purposes: + +SWGSOURCE +FORUMS +MARK FORUMS READ +SEARCH FORUMS +SUBSCRIBED FORUMS +SUBSCRIBED THREADS +NEW THREADS +SHOWCASESWG FILESMEMBERSCHAT1 / 2 +/ + + +Forums +SWG NGE Source Server Development +FAQ & Guides +How To Increase The Ram Quota For Swg Client (useful For 3d Mods) +Discussion in 'FAQ & Guides' started by Nezzar, Jul 8, 2017. + +Subscribe to Thread +Nezzar +Nezzar +Well-Known Member +Joined:Jan 27, 2017 +Messages:52 +Likes Received:2 +#1Nezzar, Jul 8, 2017 +This setting was actually taken from the SOE forums. + +This will allow you to set a new maximum RAM usage. The default is capped around 750 MB. +Note: 2 GB is the max, so don't bother allocating anything beyond that because the client won't use it. + +This setting will not make much difference for un-modified clients. BUT if you have mods, you will want to use that extra RAM. + +- Right-click the "My Computer" icon (Computer in Vista/Win7) +- Choose "Properties" from the context menu +- Click the "Advanced" tab ("Advanced system settings" link in Vista/Win7) +- Click the "Environment Variables" button +- Under the "System variables" section, click new +- Enter SWGCLIENT_MEMORY_SIZE_MB in the "Variable name" field and amount of memory to use (1024 for 1 gig) in the "Variable value" field +- Click OK + +Then in game, open the debug window with CTRL+SHIFT+G, the new value should be displayed properly in megabytes. + +Source: - http://www.swgcanon.com/index.php?topic=869.0 +- https : // www . reddit . com/r/swgemu/comments/1f25g9/how_to_increase_the_ram_allocation_for_the_swg/ +REPORT BOOKMARKLIKE + QUOTE REPLY +LordVenom +LordVenom +Member +Joined:Jun 3, 2017 +Messages:9 +Likes Received:4 +#2LordVenom, Jul 8, 2017 +For those seeking to resolve this issue in the source code without needing to adjust environment variables, you can find it in WinMain.cpp + +Essentially, the most ideal method would be to update the source to match standardized hardware. + +Code:Select All +static void SetDefaultMemoryManagerTargetSize() +{ + int megabytes = 0; + MEMORYSTATUS memoryStatus; + GlobalMemoryStatus (&memoryStatus); + megabytes = ((memoryStatus.dwTotalPhys / 4) * 3) / (1024 * 1024); + + // clamp it between 250 and 2000 MB in production, 750 in dev environments + if (megabytes < 250) + megabytes = 250; +#if PRODUCTION == 0 + if (megabytes > 750) + megabytes = 750; +#else + if (megabytes > 2000) + megabytes = 2000; +#endif + + + MemoryManager::setLimit(megabytes, false, false); +} +REPORT BOOKMARKLIKE + QUOTE REPLY +Nezzar likes this. +Write your reply... + +Write your reply... + + +Users Who Are Viewing This Thread (Users: 1, Guests: 0) +Users Who Have Read This Thread (Total: 0) +Share This Page + ABOUT US +Community for sharing and guides on how to get a SWG Server up and running. Our goal is to allow people to share information freely and publicly and to preserve that information. + + QUICK JUMP +Home +About +Forums +Downloads + USEFUL LINKS +Alpha +Delta +Omega + REGULATIONS +Forum software by XenForo™ ©2010-2017 XenForo Ltd. + + + +SWGSource +Home +Help +Terms and Rules + +=============================================================== \ No newline at end of file