From: curt Date: Wed, 9 Mar 2005 21:56:00 +0000 (+0000) Subject: Updated hybrid of original busy-wait frame rate throttling loop combined with X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2e308fe928a89b1d27de841ccd0ad2b5651f3817;p=flightgear.git 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. --- 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