ThorstenB [Sun, 20 Nov 2011 15:20:05 +0000 (16:20 +0100)]
Introduce some structure in fgMainLoop.
- Move some code to sub functions.
- Make sound manager a subsystem-manager member (and make sure it's
still processed last).
Erik Hofman [Sun, 20 Nov 2011 14:31:58 +0000 (15:31 +0100)]
Postpone initialization of the avionics soundgroup until avionics are enabled. This prevents AI classes from creating new and unnecessary avionics sample groups.
Durk Talsma [Mon, 14 Nov 2011 16:22:02 +0000 (17:22 +0100)]
Equate sun angle for morning and afternoon. This is a temporary solution, but should give more consistent results for locations that are relatively close to the poles.
ThorstenB [Sat, 12 Nov 2011 19:51:03 +0000 (20:51 +0100)]
Avoid crash in ATIS/ATC modules.
The old ATC_mgr is no longer available/initialized, which caused ATIS/ATC
modules to crash when selecting ATIS frequencies. This adds a guard to
avoid the crash, but doesn't revive the ATIS feature.
James Turner [Sat, 12 Nov 2011 18:00:12 +0000 (18:00 +0000)]
Fix a secondary issue in bug 484 - avoid a crash when --lat, --long *and* --airport were specified. ATCmgr assumes /sim/atc/runway is set in this case, but it is not, leading the a runway-not-found assert.
ThorstenB [Sat, 12 Nov 2011 10:24:08 +0000 (11:24 +0100)]
fgpanel: avoid lagging
Avoid lagging when data is sent at (slightly) higher rate than
fgpanel's display rate. Always read all available data - display
most recent.
ThorstenB [Thu, 10 Nov 2011 21:12:54 +0000 (22:12 +0100)]
#424: Don't page out AI objects. Just load lazily.
Changes commit 1e7d072eed9060bede14ff04f8aca57237fad3cd and uses the new
deferred loading - instead of paged (un)loading.
Instead of PagedLOD nodes use ProxyNodes for models in
scenery tiles. This should lower the amount of PagedLOD nodes
in the active scene. Since the models are part of the to level
tiles they are then paged out once the tile is paged out.
James Turner [Sat, 5 Nov 2011 13:18:36 +0000 (13:18 +0000)]
Refactor SGSky handling and ownership - sink into Renderer, remove global variable 'the sky', and hence clean up main loop and subsystem creation a little more.
James Turner [Mon, 31 Oct 2011 13:08:58 +0000 (13:08 +0000)]
Restore options *processing* order (which is now distinct from *parsing* order), to resolve issues when distinct but internally overlapping options are specified, e.g. for initial position or time.
ThorstenB [Sun, 30 Oct 2011 13:48:53 +0000 (14:48 +0100)]
Clean-up date/time option parser.
Add range checks and provide error messages.
Extend time offset to 64bit - so we're safe for 2038-01-19 (and the next
couple of millions years beyond...).
Support partial date/time strings, such as --start-date-gmt=2011 or
--start-date-gmt=:::12:00:00
ThorstenB [Sat, 29 Oct 2011 19:58:11 +0000 (21:58 +0200)]
Configure font in osg StatsHandler for OSG3.
OSG3 relies on "fonts/arial.ttf" being available. FG doesn't provide it -
so it's not necessarily available everywhere (not here). Use one of our
txf fonts instead.
Curtis L. Olson [Sat, 29 Oct 2011 15:36:34 +0000 (10:36 -0500)]
Commit changes to this file so I can switch branches safely, so I can pull
changes to the 2.4.0 branch, so that I can push my actual changes to the
options.cxx file. Go git!
Make use of SGTimeStamp::sleepUntil for accurate sleeping.
For use with frame rate throtteling make use of
SGTimeStamp::sleepUntil. This function should cover the
system dependent parts of accurate sleeps and should
move the system dependent code out of the time manager.
James Turner [Fri, 28 Oct 2011 14:09:10 +0000 (15:09 +0100)]
Fix Mac crashing on exit - link order determines library load order at runtime, and both ALUT and OpenAL.framework (on Mac) define the alut symbols. Fix the order so we always use ALUT.framework for the alut symbols.