From: Mikko Rasa Date: Wed, 6 Sep 2006 20:53:38 +0000 (+0000) Subject: Change sched_yield to a short sleep to improve performance on slower machines X-Git-Tag: 1.0~34 X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=5000b0101346ee4b8c4e01e0123b94f000b18e8b;p=libs%2Fcore.git Change sched_yield to a short sleep to improve performance on slower machines --- diff --git a/source/core/application.cpp b/source/core/application.cpp index a9aa88e..01bb558 100644 --- a/source/core/application.cpp +++ b/source/core/application.cpp @@ -124,7 +124,9 @@ int Application::main() #ifdef WIN32 Sleep(0); #else - sched_yield(); + //sched_yield(); + timespec ts={0,1000000}; + nanosleep(&ts, 0); #endif } else