QVR 4.1.0
A library to build Virtual Reality applications
|
Configuration of a QVRProcess. More...
#include <config.hpp>
Public Member Functions | |
QVRProcessConfig () | |
Constructor. | |
const QString & | id () const |
Returns the unique id of this process. | |
QVRIpcType | ipc () const |
Returns the type of inter-process communication to use. | |
const QString & | address () const |
Returns the IP address that the QVR server will listen on. | |
const QString & | launcher () const |
Returns the launcher command used to launch this process. | |
const QString & | display () const |
Returns the display that this process works with. | |
bool | syncToVBlank () const |
Returns whether windows of this process are synchronized with the vertical refresh of the display. | |
bool | decoupledRendering () const |
Returns whether the rendering of this child process is decoupled from the main process. | |
const QList< QVRWindowConfig > & | windowConfigs () const |
Returns the configurations of the windows on this process. | |
Friends | |
class | QVRConfig |
Configuration of a QVRProcess.
Each process works with only one display. The main process talks to the display that Qt initially uses by default; if a different display is configured, QVR will relaunch the main process automatically so that Qt talks to the configured display insted. Child processes are usually configured to use different displays.
The idea is that one display (with potentially multiple screens) runs on one GPU.
QVRProcessConfig::QVRProcessConfig | ( | ) |
Constructor.
|
inline |
Returns the IP address that the QVR server will listen on.
A QVR server is only started on the main process (which is the application process that is started first), and only if multiple processes are configured. A TCP QVR server that listens on a network address is only used if configured manually or if at least one of the processes is run on a remote host (which is assumed to be the case when a launcher is configured; see launcher()).
By default, a TCP QVR server listens on all IP addresses of the host.
|
inline |
Returns whether the rendering of this child process is decoupled from the main process.
|
inline |
Returns the display that this process works with.
|
inline |
Returns the unique id of this process.
|
inline |
Returns the type of inter-process communication to use.
|
inline |
Returns the launcher command used to launch this process.
This is only required when processes need to run on remote computers, but can also be useful for starting processes under e.g. valgrind, or with specific operating system settings, e.g. using taskset
.
Example for ssh (passwordless login to remotehost must be set up): launcher ssh remotehost
Example for ssh if you use libraries in non-standard locations: launcher ssh remotehost env LD_LIBRARY_PATH=/path/to/libs
When the special string manual
is used as launcher command, QVR will not start the process itself, and instead expects the user to start it manually. A list of options that the process needs to be started with will be printed to the terminal.
|
inline |
Returns whether windows of this process are synchronized with the vertical refresh of the display.
|
inline |
Returns the configurations of the windows on this process.
|
friend |