ThorstenB
830526a793
Traffic performance: add airport memory cache
...
to avoid repeating identical NavCache/SQL queries. Also ensures we're
not using multiple FGAirport instances for an airport - each triggering
identical queries to pull in airport data.
Airports by ICAO ID are requested very frequently at run-time, so caching
significantly boosts performance.
2012-11-24 12:42:31 +01:00
ThorstenB
439ad4a7c8
Traffic performance: cache track length
...
Track length is calculate every iteration/for every aircraft. Since some
tracks have hundreds of waypoints, calculation is slow. Cache the
track length between the waypoints ahead, so it rarely needs to be
recalculated.
2012-11-24 12:06:20 +01:00
ThorstenB
bb494e52e5
Performance improvement: pass (const) strings by reference
...
to avoid copying actual string data around.
2012-11-24 11:59:13 +01:00
Mathias Froehlich
d79b2385b4
fgai: Add an initial sketch of an external ai module.
2012-11-24 10:34:08 +01:00
Mathias Froehlich
44ffdcd7d0
hla: add io chanel configuration shortcut hla-local.
2012-11-24 09:58:53 +01:00
ThorstenB
35196ce18c
Add more debug output to NavDataCache
...
showing exactly which file triggers a cache rebuild.
2012-11-23 22:35:06 +01:00
ThorstenB
458edb9339
Use more specific logging classes for SG_LOG.
...
The log filters aren't really useful when everything uses SG_GENERAL.
2012-11-23 21:16:08 +01:00
ThorstenB
1827825fcb
Clean up namespace issues
...
avoiding "uses..." in header files.
2012-11-23 21:16:08 +01:00
ThorstenB
4a53002784
Fix compiler warning with sprintf format
...
since PositionedID is "long int", not "long long int".
2012-11-23 21:16:07 +01:00
Thomas Geymayer
846a838c70
Expose NasalSys::gcSave/gcRelease to Canvas
2012-11-22 01:06:22 +01:00
James Turner
bca6e9e890
Break upwards dependency on Traffic in the AI code
...
AIManager had unfortunate code to pass some state to the traffic-manager; this is no longer required since traffic schedules hold onto their AI-Aircraft directly as needed.
2012-11-21 14:49:34 +00:00
James Turner
77ca03da4d
AIManager cleanups, no functionality change.
2012-11-21 14:03:17 +00:00
Thomas Geymayer
258d387d15
Allow setting emission for each canvas placement
2012-11-21 13:07:57 +01:00
James Turner
563ea69d34
Missing std:: namespace in a header.
2012-11-20 17:09:09 +00:00
James Turner
51a1c86f00
Quiet some log output.
2012-11-20 17:08:56 +00:00
James Turner
9632bfcfd6
View-manager: update globals automatically.
...
Make the global view-manager pointer be controlled by the instance.
2012-11-20 13:33:20 +00:00
James Turner
04598859e3
Make PUI menu-bar reinit safe.
...
Was only cleaning up the PUI menubar, not old bindings / names. This led to duplicate bindings, each time the GUI was reset, which can happen for various reasons.
2012-11-20 13:32:10 +00:00
James Turner
d886f2a5f8
Make EnvironmentMgr shutdown its subsystems.
...
With this change, Environment subsystem can be removed and re-added at runtime using the factory commands.
2012-11-20 12:31:07 +00:00
James Turner
cabb2a419f
Allow a default name when adding subsystems.
2012-11-19 23:22:45 +00:00
James Turner
93237f1b37
Avoid a dependency on the environment-manager.
...
Change the ASI Mach computation (written by me) to use properties, instead of depending directly on the environment-manager.
2012-11-19 23:17:03 +00:00
James Turner
868b7b40dc
Many more subsystems via the factory.
...
Not all of these are tested to actually be safe to add / remove at runtime, but an increasing number are.
2012-11-19 23:03:08 +00:00
James Turner
f1a7950202
XMLHttpRequest: only set failure signal on failure
...
Use failure as a real signal property - only set it / fire listeners on a real failure condition.
2012-11-19 23:02:35 +00:00
James Turner
18da917ddd
Bracket threshold.xml loading in a DB transaction.
...
Should mitigate (but not completely fix, yet) bad map performance when initially zooming out, or panning when zoomed out.
2012-11-19 22:24:10 +00:00
Thomas Geymayer
82884ab3c6
Improve finding gperftools and disable profiling by default (even with gperftools installed)
2012-11-19 13:11:03 +01:00
James Turner
379e7a2fd5
Make HTTPClient a proper subsystem.
...
Avoid some statics, and incidentally make the proxy host/port settings dynamic (re-init the subsystem to update proxy settings, woo).
2012-11-19 11:30:12 +00:00
ThorstenB
be3f94f63a
Remove static subsystem dependencies
...
preventing us from recreating subsystems on reset/reinit.
2012-11-18 17:29:29 +01:00
Thomas Geymayer
d51499382d
Clean up CanvasWidget and more work on Canvas/Nasal bindings
2012-11-18 16:46:03 +01:00
ThorstenB
58380b286e
Fixed some uninitialized member vars and a mem leak.
2012-11-18 16:39:22 +01:00
ThorstenB
a784443a24
Remove static property dependencies
...
preventing us from wiping properties on reset/reinit/subsystem recreate.
(more work required for "native_gui" and "ATC-Outputs" protocols)
2012-11-18 16:35:54 +01:00
ThorstenB
1f1dd1fa16
viewmgr: fix mixed up white-spaces/indentation
...
(content otherwise unchanged)
2012-11-18 13:23:10 +01:00
ThorstenB
d761da248f
viewmgr: stash properties for better performance
2012-11-18 13:17:07 +01:00
ThorstenB
01617861ce
toggle fullscreen: also adapt GUI plane when resizing
2012-11-18 00:00:15 +01:00
ThorstenB
b577ec70fc
Add command to toggle fullscreen mode.
2012-11-17 23:07:00 +01:00
ThorstenB
4e6f0e18fd
YASim airborne start-up
...
Gear should be up when starting in-air.
2012-11-17 20:05:16 +01:00
ThorstenB
adc95a4b55
#600 , for Curt... ;-) allow speed-up value to use fractions
...
"speed-up" can now also be used for slow-motion (i.e. 0.5 / 0.25 / ...)
or fractional speeds (3.141...). This was already working for instruments
(for replay) before, now it's also considered by FDM simulation.
2012-11-17 20:01:19 +01:00
James Turner
8a954f8338
Support request body on xmlhttprequest.
...
Allow XML property data to be submitted with a request; changes the request method from GET to POST. Supply nodes via the 'body' argument to the command.
2012-11-17 18:10:15 +00:00
ThorstenB
bf0dbb22d0
#931 : some VOR+ILS stations not working on 32bit machines
...
When casting to int, always remember the ugly effects of floating-point
(im)precisions ;-).
2012-11-16 22:46:41 +01:00
James Turner
91c6e3433d
Further work on bug 905.
...
Tolerate Octree leaf children which have been moved outside their leaf's BBox. This is necessary since lazy-loading of ILS and threshold files can cause re-locations even during child traversal, where updating the hierarchy is very complex. Instead, simply tolerate this case, and rely on the real position data (which is correct).
2012-11-16 16:43:54 +00:00
Thomas Geymayer
48c1b51875
Add new property indicating whether profiler is available
2012-11-16 12:59:44 +01:00
Thomas Geymayer
1a0fcd5f56
NasalCanvas: Clean up and expose Element node ghost
2012-11-16 12:34:38 +01:00
ThorstenB
9d067bc890
#918 : fix jsbsim in-air repositioning issue
2012-11-15 20:20:40 +01:00
ThorstenB
791389cb98
#895 : AI traffic not working when system is offline but real-wx is enabled
...
Add a timeout when waiting for valid METAR.
2012-11-15 20:20:40 +01:00
ThorstenB
7fa2aecc22
fgprotocol: delete io channel on shutdown
2012-11-15 20:20:40 +01:00
ThorstenB
e8fc85ef7e
jpg-httpd: Add error messages when unable to open port etc.
...
Also move private code to cxx file.
2012-11-15 20:20:40 +01:00
ThorstenB
58158bf51f
jpg-httpd: consistent indentation and white-spaces
...
(no content change)
2012-11-15 20:20:40 +01:00
Christian Schmitt
dd6c220fd7
CMAKE: find plib module: correct the linking order of the pu component,
...
which has to be before fnt. This fixes the fgpanel linking on some distros.
2012-11-15 15:48:34 +01:00
Thomas Geymayer
779a9ae415
Really make profiling commands optional
2012-11-15 13:56:31 +01:00
Thomas Geymayer
0761af344d
Visual Studio bug workaround
2012-11-15 12:43:35 +01:00
Thomas Geymayer
859e92a8ed
Experiment with exposing more canvas methods
2012-11-15 12:43:34 +01:00
Thomas Geymayer
892806cb3f
More cleanup an move of helper classes to simgear
2012-11-15 12:43:34 +01:00