S&box Wiki

Launch Arguments

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
-dx11 Use DirectX 11 for rendering (DEPRECATED)
-forcenovsync Disable vertical sync
-highdpi Enable high DPI support
-msaa Force MSAA level
-novsync Disable vertical sync
-nowindow Hide the application window
-rendersystemdll
-rs_reset Use default render system
-safe_mode Use default render system
-vsync Enable vertical sync

VR

Argument Description
-novr Disable virtual reality
-vr Enable VR
-vrdemo Show window centered on default monitor

Tools

Argument Description
-project "mygame/.sbproj" Launches straight into the specified project
-tools Launch the tools application
-vconsole Enable the VConsole

Server

Argument Description
-allowlocalhttp Allow local urls for http requests. Only works on server.