Difference between revisions of "Startup parameters"

From Kerbal Space Program Wiki
Jump to: navigation, search
(Parameters: Add vulkan, remove obvious untested notes.)
(The "adapter" command-line argument has been replaced with "monitor".)
Line 23: Line 23:
 
|'''<tt>-single-instance</tt>''' || Only allows one instance of KSP. When attempting to launch another instance of KSP, existing instance will become active window. <ref name="multi">[[thread:86893|V0.24.0 Multicore processor issues and solutions (x86-x64)]] on the forum</ref>
 
|'''<tt>-single-instance</tt>''' || Only allows one instance of KSP. When attempting to launch another instance of KSP, existing instance will become active window. <ref name="multi">[[thread:86893|V0.24.0 Multicore processor issues and solutions (x86-x64)]] on the forum</ref>
 
|-
 
|-
|'''<tt>-adapter</tt>''' || Changes preferred monitor for full screen or full screen window. Example: "<tt>-adapter 2</tt>" <ref>[http://www.reddit.com/r/KerbalSpaceProgram/comments/1y2h8m/psa_ksp_in_a_borderless_window_windowed_fullscreen/cfh52nr PSA: KSP in a Borderless Window (Windowed Fullscreen)] on reddit</ref>
+
|<s>'''<tt>-adapter</tt>'''</s> || <s>Changes preferred monitor for full screen or full screen window. Example: "<tt>-adapter 2</tt>"</s> <ref>[http://www.reddit.com/r/KerbalSpaceProgram/comments/1y2h8m/psa_ksp_in_a_borderless_window_windowed_fullscreen/cfh52nr PSA: KSP in a Borderless Window (Windowed Fullscreen)] on reddit</ref>
 +
|-
 +
|'''<tt>-monitor</tt>''' || Changes preferred monitor for full screen or full screen window. Example: "<tt>-monitor 2</tt>" <ref>[https://issuetracker.unity3d.com/issues/command-line-argument-adapter-not-working-when-running-two-instances-at-the-same-time Command line argument -adapter not working when running two instances at the same time] on Unity issue tracker</ref>
 
|-
 
|-
 
|'''<tt>-force-opengl</tt>''' || Forces KSP to use OpenGL <ref>[[thread:84203|Less memory usage by using OpenGL]] on the forum</ref>
 
|'''<tt>-force-opengl</tt>''' || Forces KSP to use OpenGL <ref>[[thread:84203|Less memory usage by using OpenGL]] on the forum</ref>

Revision as of 07:47, 19 June 2024

This article is a stub. You can help KSP Wiki by expanding it.

Startup parameters can be configured by creating a new shortcut and then adding the appropriate option in the target line.

Example

<program file> -popupwindow -adapter 2

For Steam version:

  1. Choose the game shortcut in Library
  2. Right click on the game
  3. Properties -> General -> Set Launch Options...

Change default to run in 64bit (Windows):

  1. Properties -> General -> Set Launch Options...
  2. Change default executable to the 64bit version: "<path to KSP directory>\KSP_x64.exe" %command%

ex. "C:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\KSP_x64.exe" %command%

Parameters

Here is an incomplete list of available start up parameters:

-popupwindow Enables full screen window mode. "Full Screen" option in graphics settings must be disabled for this to work. This option is also available through the KSP launcher settings. [1]
-single-instance Only allows one instance of KSP. When attempting to launch another instance of KSP, existing instance will become active window. [2]
-adapter Changes preferred monitor for full screen or full screen window. Example: "-adapter 2" [3]
-monitor Changes preferred monitor for full screen or full screen window. Example: "-monitor 2" [4]
-force-opengl Forces KSP to use OpenGL [5]
-force-glcore Forces KSP to use OpenGL and use a core profile (default behavior in OpenGL)
-force-gles Forces KSP to use the OpenGL ES stack typically used in mobile Unity Games.
-force-d3d9 Forces KSP to use DirectX9 [2]
-force-d3d11 Forces KSP to use DirectX11
-force-gfx-metal Forces KSP to use the Mac OS Metal API
-force-vulkan Forces KSP to use the experimental Vulkan stack.
-force-wayland Forces KSP to use the experimental Wayland support in Linux.
-nolog [2]

References

  1. Launching KSP in windowed borderless mode. (Make sure you have fullscreen disabled in the game settings) on reddit
  2. 2.0 2.1 2.2 V0.24.0 Multicore processor issues and solutions (x86-x64) on the forum
  3. PSA: KSP in a Borderless Window (Windowed Fullscreen) on reddit
  4. Command line argument -adapter not working when running two instances at the same time on Unity issue tracker
  5. Less memory usage by using OpenGL on the forum

External Links