Howto:Activate multi core and multi GPU support: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
m (starting to document what's currently undocumented: http://flightgear.org/forums/viewtopic.php?f=24&t=7716&st=0#p75889)
 
mNo edit summary
Line 1: Line 1:
This applies mostly to highend multi-core or multi-GPU, multi-screen (or multi-window) setups.
FlightGear supports a number of different threading models to make use of multiple CPUs or GPUs, this applies mostly to highend multi-core or multi-GPU, multi-screen (or multi-window) setups and may improve performance.


There is a property supported named /sim/rendering/multithreading-mode this can be set either in preferences.xml or by using the --prop:/sim/rendering/multithreading-mode= parameter from the console (or fgrun) this affects directly the osgviewer threading mode, supported values are:
There is a property supported named /sim/rendering/multithreading-mode this can be set either in preferences.xml or by using the --prop:/sim/rendering/multithreading-mode= parameter from the console (or fgrun) this affects directly the osgviewer threading mode, supported values are:
Line 20: Line 20:
  </sim>
  </sim>
  </PropertyList>
  </PropertyList>
This property must be set during initialization, modifying it at runtime has no effect.


* http://flightgear.org/forums/viewtopic.php?f=11&t=7182&p=69706
* http://flightgear.org/forums/viewtopic.php?f=11&t=7182&p=69706

Revision as of 12:00, 29 July 2010

FlightGear supports a number of different threading models to make use of multiple CPUs or GPUs, this applies mostly to highend multi-core or multi-GPU, multi-screen (or multi-window) setups and may improve performance.

There is a property supported named /sim/rendering/multithreading-mode this can be set either in preferences.xml or by using the --prop:/sim/rendering/multithreading-mode= parameter from the console (or fgrun) this affects directly the osgviewer threading mode, supported values are:

   * AutomaticSelection
   * CullDrawThreadPerContext
   * DrawThreadPerContext
   * CullThreadPerCameraDrawThreadPerContext

To set this in a separate XML file, just include it from preferences.xml (toplevel PropertyList node):

threadingmode.xml:

<?xml version="1.0"?>
<PropertyList>
<sim>
   <rendering>
     <multithreading-mode>AutomaticSelection</multithreading-mode>
   </rendering>
</sim>
</PropertyList>

This property must be set during initialization, modifying it at runtime has no effect.