From 57d75572b22eb3ced95cdc81e7b48984bd9de5a4 Mon Sep 17 00:00:00 2001 From: Akkadius Date: Wed, 8 Feb 2017 17:28:54 -0600 Subject: [PATCH] Heavily reduce idle cpu footprint with many zone processes loaded simultaneously and not active --- zone/net.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/zone/net.cpp b/zone/net.cpp index 25d6f65df..2f67c85d3 100644 --- a/zone/net.cpp +++ b/zone/net.cpp @@ -546,7 +546,13 @@ int main(int argc, char** argv) { #endif #endif } //end extra profiler block - Sleep(ZoneTimerResolution); + if (is_zone_loaded) { + Sleep(ZoneTimerResolution); + } + else { + Sleep(1000); + } + } entity_list.Clear();