Multi-Threading in FlightGear

From FlightGear wiki
Jump to navigation Jump to search

Different components of FlightGear support multi-threading.

Checking Multi-Thread Status

On Windows, you can use the Process Explorer. On Linux, you can run ps -T -o pid,tid,comm,stat,psr,pcpu,pmem,wchan,cmd -p $(pgrep -d, fgfs).

Components

Scripting (Nasal)

1rightarrow.png See Howto:Start worker threads using listeners in Nasal for the main article about this subject.

OpenSceneGraph

1rightarrow.png See Howto:Activate multi core support for OSG for the main article about this subject.

OSG threading support can be enabled by using the --prop:/sim/rendering/multithreading-mode=... parameter.

Canvas

1rightarrow.png See Canvas Threading for the main article about this subject.