]> git.mxchange.org Git - flightgear.git/commit
Autopilot: save loads of CPU cycles
authorTorsten Dreyer <Torsten@t3r.de>
Thu, 5 Apr 2012 18:40:07 +0000 (20:40 +0200)
committerTorsten Dreyer <Torsten@t3r.de>
Thu, 5 Apr 2012 18:40:07 +0000 (20:40 +0200)
commit68e1a8c4cb13f365a7d01ed5d20a112404694f05
tree36d109b562b58fb17a48e5589ceaeb9eca582e22
parent44de0e1df47cc3976c87273eff2693278f64e185
Autopilot: save loads of CPU cycles

Not every xml-autopilot filter needs to run at the update rate
of the FDM. This only makes sense for the autpilot filters. Those,
who update instrument needles or environment properties for example
may run at frame rate.
This patch (thanks to ThorstenB, who is the author) forces those
filters defined in /sim/systems/autopilot into the FDM loop and those
defined in /sim/systems/property-rule into the default loop. They
show up as xml-autopilot and xml-proprules in the performance monitor
src/Autopilot/autopilotgroup.cxx
src/Autopilot/autopilotgroup.hxx
src/Main/fg_init.cxx