Julian Smith
335547160c
src/Main/fg_init.cxx: use /sim/log-file-line to control output of file:line in logs.
...
We call sglog().setFileLine() in response to changes to /sim/log-file-line.
2019-09-04 10:55:43 +01:00
Julian Smith
f3d1135320
Various fixes for building on OpenBSD.
2019-09-04 10:55:43 +01:00
Scott Giese
1ede51f3f6
Improved OSG Version detection.
2019-08-26 17:45:16 -05:00
Edward d'Auvergne
34a6cb3c74
SGSubsystem classes: Registration of all subsystems.
2019-07-01 14:51:32 +02:00
Edward d'Auvergne
d259c70560
SGSubsystem classes: Addition of staticSubsystemClassId() to all subsystems.
2019-07-01 14:51:32 +02:00
Edward d'Auvergne
332c240b38
SGSubsystemGroup: Removal of the subsystem group naming.
...
This is a partial reversion of 5253215065
, the
changes of which are incompatible with the subsystem class IDs.
2019-07-01 14:27:30 +02:00
Edward d'Auvergne
fb5c36fc82
SGSubsystem classes: Renaming of the subsystem ID variables and functions.
2019-07-01 14:27:30 +02:00
Edward d'Auvergne
7a6e63ddb9
SGSubsystem classes: Subsystem and subsystem group API declaration standardisation.
...
This is a cleanup commit.
2019-07-01 14:27:30 +02:00
Edward d'Auvergne
60a2444766
SGSubsystem classes: Whitespace standardisation of the declarations.
...
This is a clean up commit prior to the subsystem API standardisation to simplify
the diffs. It includes all SGSubsystem and SGSubsystemGroup derived classes.
2019-07-01 14:27:28 +02:00
Scott Giese
47e3e7baed
[Emesary] Fix compile on Linux.
2019-06-14 21:45:11 -05:00
Richard Harrison
6ebc91d3f7
Added mainloop frame notifications
...
Using Emesary Global Transmitter the following events are notified
* Frame Begin
* Frame End
* Mainloop started
* Mainloop stopped
This integrates with the background threaded Nasal Garbage collection (simgear:nasal/cppbind/NasalEmesaryInterface.hxx) and is also controlled by the properties as follows
* /sim/nasal-gc-threaded (true) - use background threaded GC
* /sim/nasal-gc-threaded-wait (false) - at the start of the frame wait for the previous GC thread to complete.
I initially thought that the wait at the start of the frame would be necessary; however in 100 or so hours of flight without the await for completion at the start of frame no threading problems (or any other problems) were shown; so nasal-gc-threaded-wait is defaulted to false which gives a slight boost in performance.
So what this does is to it removes the GC pause of 10-20ms every 4 seconds (test using the F-15). This change doesn't really give much extra performance per frame because normally GC is only performed when needed.
2019-06-11 14:38:38 +02:00
James Turner
d8b6fbfef0
macOS / DBus : avoid abort on startup
...
Don’t do the fgOSDisableScreensave DBus stuff on macOS - there is no
global DBus daemon configured by default.
2019-05-27 16:05:19 +01:00
James Turner
88a78dd314
Remove last hard-coded default airport ID
...
Neither Torsten nor I can recall why we continued to hard-code this,
so make it dynamic for now. When we remember why we hard-code it,
we can add a BigComment from future-James to future-future-James about
why not to do this again :)
2019-05-27 11:42:53 +01:00
Fernando García Liñán
fa4ef2ab52
Added a property to indicate compositor support
2019-05-20 23:44:16 +02:00
James Turner
bac5d6c713
Windows: read Unicode command line
...
One more step in full Unicode support.
2019-04-27 18:54:13 +01:00
Dan Wickstrom
1948304157
Fix problem where AI planes are placed on top of user aircraft when user either selects a specific spot or user selects parking to be an available spot.
2019-04-25 11:39:41 +01:00
James Turner
4e8e69b4f8
Migrate invert-mouse-wheel setting from pre 2019.x
...
Flip the sense of this property, since the interpretation in SG is
also flipped now.
2019-04-11 20:40:17 +01:00
Lars Toenning
85acefab95
Swift: initial support
2019-04-11 11:36:22 +01:00
James Turner
64eaf6fe03
Fix for route-path when leg 0 is not a runway
...
Avoid doing turn-computation for the first waypoint, even if it’s not
a runway. Add a unit-test to cover this case.
Reported by Josh Davidson
2019-03-26 22:50:46 +01:00
James Turner
7c2a5e9e99
FlightGear support for queued commands
...
This enables queued commands to be processed once per main event loop.
At present this is done after subsystem updates.
2019-03-24 17:59:23 +00:00
Richard Harrison
a95daa2a5a
add command line options to enable and disable DDS Texture cache.
2019-03-01 19:06:42 +01:00
Richard Harrison
8e35b7efc7
OSG 3.4.0 compilation fixes.
2019-02-20 19:12:02 +01:00
Fernando García Liñán
bec41e7e17
Compositor: FG now gracefully quits if no valid Compositor has been found. Added a command line option (--compositor) to choose the default Compositor.
2019-02-20 03:09:17 +01:00
James Turner
c2fb01ccb7
Partial revert of METAR fix, now SimGear is fixed.
...
This reverts commit 2fdc24c109
.
2019-02-17 19:03:19 +00:00
Richard Harrison
5253215065
Improvements to performance monitoring.
...
* Ensure that subsystems are named.
* Nasal timers are named appropriately
2019-02-10 18:07:07 +01:00
Scott Giese
2fdc24c109
METAR fix
2019-02-07 01:26:05 -06:00
James Turner
dee1998979
Less Boost.
2019-02-06 17:36:36 +00:00
Scott Giese
7fd7c599a2
Fix missing header file for strutils
2019-02-04 23:49:02 -06:00
James Turner
a9a49bc2e6
Unboosting files
...
Use simgear::strutils replacements in places, C++11 features in others
2019-02-04 15:20:22 +00:00
James Turner
49c4dc5213
Scenarios from FG_HOME, aircraft and add-ons
...
Enhancements suggested by Nikolai Verner-Christensen - support loading
scenarios from {FG_HOME}/Scenarios, {aircraft-dir}/Scenarios and
{add-on}/Scenarios.
Additionally, allow passing the path to a scenario file to
—ai-scenario, eg —ai-scenario=/home/jmt/FGFS/my-test-scenario.xml
When a scenario defines a carrier, and —carrier is used to request a
carrier start, we now auto-load the corresponding scenario, to give
a nicer user experience.
2019-02-03 12:12:00 +00:00
Richard Harrison
6e2443d268
Change to print exception type (inherited exceptions)
2019-01-20 23:26:58 +01:00
James Turner
845e7c6bef
Improved ‘is MP enabled’ check for pos-init
...
This fixes the MP detection check when selecting MP on the command-line
2019-01-08 23:20:51 +00:00
James Turner
b0dc850df1
Fix type of some numerical constants
...
Patch by Ron Haertel
2019-01-06 14:30:58 +00:00
James Turner
9339fd2375
Add some /sim/presets properties to setDefaults
...
Ensure these properties are always defined, but with default values,
to simplify usage.
2018-12-04 09:50:48 +01:00
James Turner
1e104bbdfe
Version the FG-root setting
...
This ensures fresh installs will see an empty value, and hence
default to the shipped version.
2018-11-25 14:06:51 +00:00
Richard Harrison
1e636ce4cf
Support for DDS Texture Cache
...
- pass texture cache control properties to simgear
- /sim/rendering/texture-cache/cache-enabled
- /sim/rendering/texture-cache/compress-transparent
- /sim/rendering/texture-cache/compress-solid
- /sim/rendering/texture-cache/compress
- support --texture-cache-dir command line option
- set max reported supported texture size during splashscreen.
2018-11-24 20:21:46 +01:00
James Turner
3b3c99777d
Reduce level of a log message
2018-11-07 09:39:54 +01:00
James Turner
49c3fc064a
XLIFF: Fix loading of indexed strings
2018-10-13 21:22:18 +01:00
James Turner
2313f482a3
Add missing C-string include for strcmp
2018-10-13 09:07:32 +01:00
James Turner
dbb99ee550
XLIFF: fix null approved-attr handling
2018-10-13 08:42:05 +01:00
James Turner
53de09d151
Fix dumb commit for XLIFF approved-attr handling
2018-10-13 00:20:38 +01:00
James Turner
adea824bd3
XLIFF parser ignores un-approved translations
...
As suggested by Florent, ensure we respect the XLIFF ‘approved’
attribute, so we can track translations which don’t work yet due to
PLIB limitations.
2018-10-12 22:24:33 +01:00
James Turner
f819750287
Launcher respects --language arg if set
2018-10-12 11:37:39 +01:00
Erik Hofman
43c201d9d0
Fix an almost certain buffer overflow
2018-10-10 09:24:02 +02:00
James Turner
a66f0243bf
Use GetUserPreferredUILangauges on Windows
...
This should accurately reflect the user's language preferences in the control
panel, unlike the previous method.
2018-09-28 12:09:24 +01:00
James Turner
098c489ae0
Make —parking-id an alias for —parkpos
2018-09-20 10:26:48 +01:00
James Turner
110aec6039
Tiny code cleanups while doing other changes
2018-09-18 17:34:23 +01:00
James Turner
72e1737aa6
Reset: wipe the Effect UniformCache
2018-09-13 23:52:52 +02:00
James Turner
72239c9a52
Code cleanups while checking reposition performance
...
Some C++11 fixes and give FDMShell, Reply a subsystem-name
2018-09-09 13:42:51 +01:00
James Turner
525cfadfa3
Reset: persist USERARCHIVE settings
...
Save user-setting properties to disk before beginning a reset, so
they are restored correctly.
2018-09-01 19:21:47 +01:00