Commandline arguments#
Any application build with SGCT can receive the following commandline options that control the applications behavior.
--config [string]or-c [string]Sets the configuration file that should be loaded by the application to use as the cluster system. This path should be either an absolute path, or a path relative to the current working directory.
--helpDisplays the help message listing all available commandline arguments supported by SGCT.
--local [integer]or-l [integer]Forces the node configuration to be
localhost. The index that is provided is the index that is used for indexing multiple node settings in the cluster setup. Index0corresponds to127.0.0.1, index1is127.0.0.2, etc.--clientSets the node to run as a client. This is only available when running as a local node, as otherwise the IP address is used to set the client and server setup.
--debugSet the notification level of the Log to include
Debuglevel messages which provides more information to debug potential bugs or issues from faulty configuration files.--firm-syncEnables a firm frame synchronization using whatever method that is available, overwriting the settings that are provided in the cluster configuration.
--loose-syncDisables the firm frame synchronization, overwriting the settings that are provided in the cluster configuration.
--ignore-syncDisables the frame synchronization entirely, which will completely decouple the rendering nodes. This should only be set if you are absolutely sure you know what you are doing.
--notify [debug, info, warning, or error ]Sets the notification level of the Log to include only the messages of the chosen log level or higher. Setting this value to
debugachieves the same as setting the-debugcommandline flag. If--debugand--notifyis specified in the same command--notifytakes precedence.--number-capture-threads [integer]Sets the maximum number of threads that should be used for frame capturing. If no frames are captured, this setting is ignored.
--screenshot-path [string]Sets the base file path in which screenshots are stored. Each screenshot be stored with a unique base name and a frame counter.
--screenshot-prefix [string]Sets the prefix used for the screenshots taken by this application. The default value for the prefix is “SGCT”.
--add-node-name-in-screenshotIf set, screenshots will contain the name of the node in multi-node configurations. The default value is that the numerical identifier for the node is not used in the screenshots.
--omit-node-name-in-screenshotIf set, screenshots will not contain the name of the window if multiple windows exist. The default is that the name of the window is included.
--print-wait-messageIf this is set to
true(the default), SGCT will print a message to the console log while the server is waiting for all clients to connect. If this value isfalseno such message is printed.--wait-timeoutThis value determines how long the server should wait for all clients to connect and for how long the clients should wait for the server to start.