mirror of
https://github.com/glest/glest-source.git
synced 2025-08-28 02:09:54 +02:00
- change game load defaults for less stress on CPU
This commit is contained in:
@@ -698,7 +698,7 @@ void ClientInterface::waitUntilReady(Checksum* checksum) {
|
|||||||
uint64 waitLoopIterationCount = 0;
|
uint64 waitLoopIterationCount = 0;
|
||||||
uint64 MAX_LOOP_COUNT_BEFORE_SLEEP = 100;
|
uint64 MAX_LOOP_COUNT_BEFORE_SLEEP = 100;
|
||||||
MAX_LOOP_COUNT_BEFORE_SLEEP = Config::getInstance().getInt("NetworkClientLoopGameLoadingCap",intToStr(MAX_LOOP_COUNT_BEFORE_SLEEP).c_str());
|
MAX_LOOP_COUNT_BEFORE_SLEEP = Config::getInstance().getInt("NetworkClientLoopGameLoadingCap",intToStr(MAX_LOOP_COUNT_BEFORE_SLEEP).c_str());
|
||||||
int sleepMillis = Config::getInstance().getInt("NetworkClientLoopGameLoadingCapSleepMillis","1");
|
int sleepMillis = Config::getInstance().getInt("NetworkClientLoopGameLoadingCapSleepMillis","10");
|
||||||
|
|
||||||
//wait until we get a ready message from the server
|
//wait until we get a ready message from the server
|
||||||
while(true) {
|
while(true) {
|
||||||
|
@@ -1176,9 +1176,9 @@ void ServerInterface::waitUntilReady(Checksum *checksum) {
|
|||||||
|
|
||||||
Lang &lang= Lang::getInstance();
|
Lang &lang= Lang::getInstance();
|
||||||
uint64 waitLoopIterationCount = 0;
|
uint64 waitLoopIterationCount = 0;
|
||||||
uint64 MAX_LOOP_COUNT_BEFORE_SLEEP = 100;
|
uint64 MAX_LOOP_COUNT_BEFORE_SLEEP = 10;
|
||||||
MAX_LOOP_COUNT_BEFORE_SLEEP = Config::getInstance().getInt("NetworkServerLoopGameLoadingCap",intToStr(MAX_LOOP_COUNT_BEFORE_SLEEP).c_str());
|
MAX_LOOP_COUNT_BEFORE_SLEEP = Config::getInstance().getInt("NetworkServerLoopGameLoadingCap",intToStr(MAX_LOOP_COUNT_BEFORE_SLEEP).c_str());
|
||||||
int sleepMillis = Config::getInstance().getInt("NetworkServerLoopGameLoadingCapSleepMillis","1");
|
int sleepMillis = Config::getInstance().getInt("NetworkServerLoopGameLoadingCapSleepMillis","10");
|
||||||
|
|
||||||
while(exitServer == false && allReady == false && logger.getCancelLoading() == false) {
|
while(exitServer == false && allReady == false && logger.getCancelLoading() == false) {
|
||||||
waitLoopIterationCount++;
|
waitLoopIterationCount++;
|
||||||
|
Reference in New Issue
Block a user