From 1955e5bd28d350bce228a78bf9c090d245f0c8be Mon Sep 17 00:00:00 2001 From: timoore Date: Thu, 20 Nov 2008 11:01:05 +0000 Subject: [PATCH] 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! --- src/Main/FGEventHandler.cxx | 4 ---- 1 file changed, 4 deletions(-) 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; -- 2.39.5