]> git.mxchange.org Git - flightgear.git/commit
Use a helper thread to init the traffic-manager.
authorJames Turner <zakalawe@mac.com>
Mon, 1 Oct 2012 08:21:34 +0000 (09:21 +0100)
committerJames Turner <zakalawe@mac.com>
Fri, 5 Oct 2012 08:33:04 +0000 (09:33 +0100)
commit1e5bd162e78d6e6878c492284e83cc4cb522614e
tree15576b2d231097cafbe47305224e7aef1bb50fa6
parent2bdcde5a4b4db8cd1e83fdf9389b70da2300bb3c
Use a helper thread to init the traffic-manager.

Make traffic manager startup asynchronous, but also avoid frame-stutter due to file parsing on the main thread. Note only XML parsing happens on a thread - once that's complete, everything happens as normal on the main thread, as before.
src/Traffic/TrafficMgr.cxx
src/Traffic/TrafficMgr.hxx