Heavily reduce idle cpu footprint with many zone processes loaded simultaneously and not active

This commit is contained in:
Akkadius 2017-02-08 17:28:54 -06:00
parent d1abe4a332
commit 57d75572b2

View File

@ -546,7 +546,13 @@ int main(int argc, char** argv) {
#endif #endif
#endif #endif
} //end extra profiler block } //end extra profiler block
Sleep(ZoneTimerResolution); if (is_zone_loaded) {
Sleep(ZoneTimerResolution);
}
else {
Sleep(1000);
}
} }
entity_list.Clear(); entity_list.Clear();