S&box Wiki

Revision Difference

launchargs#550370

<cat>Code.Misc</cat> <title>Launch Arguments</title> # Launch Arguments Here's a list of launch arguments that can be useful for various purposes. ⤶ ## Window⤶ | Argument | Description | |---------------------------|---------------------------------------------------------| | -border | |⤶ | -fullscreen | Launch the application in fullscreen mode |⤶ | -height | Set the window height |⤶ | -noborder | |⤶ | -resizing | Enable window resizing |⤶ | -width | Set the window width |⤶ ⤶ ## Rendering⤶ ⤶ | Argument | Description |⤶ |---------------------------|---------------------------------------------------------|⤶ | -adapter | Specify the graphics adapter to use | | -allthreads | Use all available CPU threads |⤶ | -border | |⤶ | -con_logfile | |⤶ | -condebug | |⤶ | -conrotate | |⤶ | -consoleapp | |⤶ | -consolelog | |⤶ | -consolelog_append | |⤶ | -consolelog_notimestamp | |⤶ | -consolelog_rotate | |⤶ | -dx11 | Use DirectX 11 for rendering | | -dxlevel | Set the DirectX feature level | | -dxwarp | Use the DirectX software rasterizer (WARP) | | -empty | Create an empty project |⤶ | -entrypoint | |⤶ | -force_new_recommend | |⤶ | -forcenovsync | Disable vertical sync | | -fpexcept | |⤶ | -fullscreen | Launch the application in fullscreen mode |⤶ | -game | Specify the game to run |⤶ | -gameinfo_define | Define a game info key-value pair |⤶ | -height | Set the window height |⤶ | -highdpi | Enable high DPI support | | -indir | Set the input directory | | -msaa | Enable multi-sample anti-aliasing |⤶ | -multiple_tools_instances | Allow multiple instances of the tools |⤶ | -no_bundle_module | |⤶ | -no_tier2_bundle | |⤶ | -no_tier3_bundle | |⤶ | -noborder | |⤶ | -novpk | |⤶ | -novr | Disable virtual reality |⤶ | -msaa | Force MSAA level | | -novsync | Disable vertical sync | | -nowindow | Hide the application window | | -outdir | | | -p-r- | | | -p-t- | | | -p-x- | | | -p-x-v- | | | -publiccontent | |⤶ | -rendersystemdll | | | -resizing | Enable window resizing |⤶ | -rs_reset | Reset render system to default settings | | -safe_mode | Enable safe mode | | -script | Execute a script file | | -showasserts | Show assert dialog on errors |⤶ | -sse2 | | | -sse3 | |⤶ | -sse4 | | | -tempcontent | |⤶ | -threads | Set the number of worker threads |⤶ | -rendersystemdll | | | -rs_reset | Use default render system | | -safe_mode | Use default render system | | -vsync | Enable vertical sync | | -vulkan | Use the Vulkan rendering backend | ⤶ ## VR⤶ ⤶ | Argument | Description | |---------------------------|---------------------------------------------------------|⤶ | -novr | Disable virtual reality | | -vr | Enable VR | | -vrdemo | Show window centered on default monitor | ⤶ ## Tools⤶ ⤶ | Argument | Description | |---------------------------|---------------------------------------------------------|⤶ | -multiple_tools_instances | Allow multiple instances of the tools | | -tools | Launch the tools application | | -toolsvr | Launch the tools application in VR mode |⤶ | -unbufferedio | |⤶ | -use_tier2_bundle | |⤶ | -use_tier3_bundle | |⤶ | -vconport | Set the VConsole port number |⤶ | -vconsole | Enable the VConsole | | -vr | Enable VR |⤶ | -vrdebug | Enable VR debugging |⤶ | -vrdemo | Enable VR demo mode |⤶ | -vsync | Enable vertical sync |⤶ | -vulkan | Use the Vulkan rendering backend |⤶ | -width | Set the window width |⤶ ⤶ ⤶ ⤶ ⤶ ⤶ ⤶ ⤶ ⤶ ⤶ ⤶ ⤶ ⤶ ⤶ ⤶ ⤶ ⤶