From 5000b0101346ee4b8c4e01e0123b94f000b18e8b Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Wed, 6 Sep 2006 20:53:38 +0000 Subject: [PATCH] Change sched_yield to a short sleep to improve performance on slower machines --- source/core/application.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.45.2