1
0
Fork 0

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!
This commit is contained in:
timoore 2008-11-20 11:01:05 +00:00
parent 8afab2045b
commit 1955e5bd28

View file

@ -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;