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:
parent
8afab2045b
commit
1955e5bd28
1 changed files with 0 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue