From: timoore Date: Thu, 20 Nov 2008 11:01:05 +0000 (+0000) Subject: Don't call idle and draw functions from FGEventHandler::handle. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1955e5bd28d350bce228a78bf9c090d245f0c8be;p=flightgear.git Don't call idle and draw functions from FGEventHandler::handle. These functions are now called in fgOSMainLoop. The fgMainLoop function was being called twice, which resulted in a slow-down, but also caused the displayed frame rate to double! --- diff --git a/src/Main/FGEventHandler.cxx b/src/Main/FGEventHandler.cxx index 16babdead..e4d1d1043 100644 --- a/src/Main/FGEventHandler.cxx +++ b/src/Main/FGEventHandler.cxx @@ -147,10 +147,6 @@ bool FGEventHandler::handle(const osgGA::GUIEventAdapter& ea, switch (ea.getEventType()) { case osgGA::GUIEventAdapter::FRAME: - if (idleHandler) - (*idleHandler)(); - if (drawHandler) - (*drawHandler)(); mouseWarped = false; handleStats(us); return true;