From 2e308fe928a89b1d27de841ccd0ad2b5651f3817 Mon Sep 17 00:00:00 2001 From: curt Date: Wed, 9 Mar 2005 21:56:00 +0000 Subject: [PATCH] Updated hybrid of original busy-wait frame rate throttling loop combined with a safe undersleep() to conserve cpu. Essentially we undersleep our target by just a bit (to avoid the chance of oversleeping.) Then we finish off the remaining time slice with a busy-wait loop. --- src/Main/main.cxx | 63 ++++++++++++++++++++++++++++++++++++----------- 1 file changed, 49 insertions(+), 14 deletions(-) diff --git a/src/Main/main.cxx b/src/Main/main.cxx index db569b84e..f1bb31746 100644 --- a/src/Main/main.cxx +++ b/src/Main/main.cxx @@ -47,16 +47,13 @@ #include #include -// Class refferences +// Class references #include #include #include #include #include #include