Skip to content

How-ToOS

How to Set Steam Launch Options: Where They Go, What %command% Does and How to Undo Them

How to add, use and remove Steam launch options, based on Valve's own documentation: where the box is, which options such as -autoconfig, -windowed, -w and -refresh actually apply to, what %command% does for Proton on Linux, and why copied 'performance' codes often do nothing.

By , Systems & Technical Editor

5 min read

How to Set Steam Launch Options: Where They Go, What %command% Does and How to Undo Them

Steam launch options are short codes you type into a game's properties so it starts with different settings: a resolution, windowed mode, a skipped intro video, or on Linux, a Proton setting. They're one of the most useful tools for getting a game running when its own menu won't cooperate, and also one of the most misused, because lists of so-called performance launch options get copied between games that don't support them. This guide shows where launch options go, how they work, which ones Valve actually documents, and how to remove them. The instructions come from Valve's Steam Support page and the README for Valve's Proton project on GitHub, both credited below. Where something is our advice, we say so.

What launch options do

Valve's description is that "Game launch options can be used to change game settings before running the game." It adds that they "allow the user to supersede internal settings of the game", and calls them "an effective means to recover from incompatible video settings as well as troubleshooting a wide range of issues."

That last use is the one we'd reach for first. If you've set a resolution or refresh rate your monitor can't show and the game now opens to a black screen, a launch option can force it back without you needing to reach the in-game menu.

How to add launch options in Steam

Valve's steps are:

  1. Open your Steam Library.

  2. Right-click the game's title and select Properties.

  3. On the General tab, find the Launch Options section.

  4. Enter the options you want, and Valve says to "be sure to separate each code with a space".

  5. Close the game's Properties window and launch the game.

There's no Save button. Whatever's in the box is used the next time you start the game from Steam.

The launch options Valve documents (Source and GoldSrc games)

Valve's support page lists common launch options, but there's an important catch it spells out: "These launch options apply to GoldSrc and Source engine games only. They do not apply to most third party games." In other words, they're for Valve's own titles, such as Left 4 Dead and Team Fortress 2, which the page mentions by name, not for every game on Steam. The ones most useful for fixing display problems are:

  • -autoconfig: "Restores video and performance settings to default for the current hardware detected". Valve notes that it ignores the game's settings files "until this parameter is removed", so take it out once the game is working again.

  • -windowed or -sw: forces windowed mode. -fullscreen forces full-screen mode. Our guide to fullscreen vs borderless windowed explains the difference.

  • -w and -h: force a resolution width and height. Valve says -h isn't needed when -w is set, because "The width value will determine the height automatically."

  • -refresh: "Force a specific refresh rate." If you're not sure what your monitor supports, see our guide to changing your monitor's refresh rate.

  • -novid: Valve says that with this option "the intro Valve video will not play."

  • -console: "Starts the game with the developer console enabled."

So for a Source game stuck on a resolution your screen can't handle, an example entry would be -windowed -w 1920, and once you're back in, you can set the resolution properly in the game's menu and remove the options.

Valve also lists options such as -dxlevel and console commands with a plus sign in front, such as +mat_picmip for texture detail. It warns about one in particular: "Our games no longer support DirectX 7 as a launch option. Using this can cause crashes." If you have -dxlevel 70 in a game's launch options, Valve says to remove it.

Other games: check the developer's own advice

For games not built on Valve's engines, in our view the only launch options worth using are ones the game's developer or publisher documents, such as in its support pages or patch notes. Codes copied from forums for one game often do nothing in another, and some can cause problems. If you're trying to raise frame rates, the in-game settings and the tools in our guides to fixing stuttering in PC games and capping your frame rate are more reliable places to start.

What %command% means (Linux and Proton)

On Linux, and on Steam Deck-style setups, launch options can also set environment variables for Proton, Valve's compatibility layer for running Windows games. That's where %command% comes in. Valve's Proton README says that to change the runtime configuration for a specific game, you "Set the variable, followed by %command%". Its example is PROTON_USE_WINED3D=1 %command%, which uses "the OpenGL-based wined3d renderer instead of the Vulkan-based DXVK renderer".

In other words, %command% stands in for the game itself, so the variable goes first and the game then launches with that setting applied.

The same README documents PROTON_LOG, a "Convenience method for dumping a useful debug log" that's handy if you're reporting a problem, and notes that "To enable an option, set the variable to a non-0 value." Reassuringly, it also says these options "do not effect permanent changes to the Wine prefix. Removing the option will revert to the previous behavior." If you're new to Linux gaming, our guide to installing Bazzite is a good place to start, and the Steam Shader Pre-Caching guide explains another Steam setting that matters most on Linux.

How to undo launch options

To remove launch options, go back to the game's Properties > General > Launch Options and delete the text, leaving the box empty. In our view, it's good practice to remove any option once it's done its job, especially -autoconfig, which Valve says makes the game ignore its settings files while it's set. If a game starts behaving strangely, check this box before anything else: a forgotten launch option from months ago is an easy thing to miss.

The bottom line

Set Steam launch options by right-clicking a game in your Library, choosing Properties, and typing codes separated by spaces into Launch Options on the General tab. Valve's documented options, such as -autoconfig, -windowed, -w and -refresh, work in Source and GoldSrc games only, so for other games use only options the developer documents. On Linux, put Proton variables before %command%, as Valve's Proton README describes. Delete the text in the box to undo them, and remove options such as -autoconfig once they've done their job.

Sources

  1. 01Setting Game Launch Options (Steam Support, Valve)
  2. 02Proton README: Runtime Config Options (ValveSoftware, GitHub)

About the author

Marcus Thorne

Systems & Technical Editor

Marcus writes Forge PC's step-by-step build, troubleshooting and system optimisation guides. His background spans Windows kernel and power-state diagnostics, UEFI/BIOS configuration, NVMe storage arrays, ATX 3.1 power delivery and running local AI and LLM workloads on consumer graphics cards.

More from Marcus Thorne

Read next

How to Use RTX Dynamic Vibrance on an NVIDIA RTX Graphics Card

How-To

How to Use RTX Dynamic Vibrance on an NVIDIA RTX Graphics Card

RTX Dynamic Vibrance is NVIDIA's AI-powered, per-game take on Digital Vibrance. We list NVIDIA's requirements, then show how to turn off clashing HDR, enable it for a game in the NVIDIA App, fine-tune it from the Alt+Z overlay, pick a sensible strength and fix it when it won't switch on.

Marcus Thorne3 min

How to Use NVIDIA App Game Filters to Change How Your Games Look

How-To

How to Use NVIDIA App Game Filters to Change How Your Games Look

The NVIDIA App can lay real-time filters over more than 1,200 games, including AI filters on RTX cards. We explain the requirements, how to turn Game Filters on, open them from the Alt+Z overlay, adjust them sensibly, use them in Photo Mode and fix them when they stop working.

Marcus Thorne4 min