Mat dxlevel: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (small elaboration to the +mat_dxlevel parameter to not cause confusion)
m (Otherlang2 -> lang, formated page, and removed redundant {{DISPLAYTITLE}}.)
Line 1: Line 1:
{{otherlang2
{{lang|Mat dxlevel|title=mat_dxlevel}}
|title=mat_dxlevel
|ru=Mat_dxlevel:ru
}}
{{DISPLAYTITLE:mat_dxlevel}}
'''mat_dxlevel''' changes the DirectX mode used within a Source game. The player is only able to use modes that their hardware supports. The format is
'''mat_dxlevel''' changes the DirectX mode used within a Source game. The player is only able to use modes that their hardware supports. The format is


Line 20: Line 16:
* Resolution
* Resolution
* Windowed/Fullscreen status
* Windowed/Fullscreen status
* MSAA quality (mat_aaquality) and sample count (mat_antialias)
* MSAA quality ({{ent|mat_aaquality}}) and sample count ({{ent|mat_antialias}})
* Motion blur (mat_motion_blur_*)
* Motion blur (mat_motion_blur_*)
* Shadow depth textures
* Shadow depth textures
* Gamma (mat_monitorgamma)
* Gamma (mat_monitorgamma)


{{warning|Using -dxlevel launch parameter makes alt tabbing in and out of the game really slow. It's better to use ''+mat_dxlevel'' launch parameter instead, or to place ''mat_dxlevel'' command inside a config file.}}
{{warning|Using -dxlevel launch parameter makes alt tabbing in and out of the game really slow. It's better to use <code>+mat_dxlevel</code> launch parameter instead, or to place {{ent|mat_dxlevel}} command inside a config file.}}


== See Also ==
== See Also ==

Revision as of 13:08, 13 September 2021

English (en)Русский (ru)Translate (Translate)

mat_dxlevel changes the DirectX mode used within a Source game. The player is only able to use modes that their hardware supports. The format is

 mat_dxlevel [DirectX version]
 mat_dxlevel 70
 mat_dxlevel 80
 mat_dxlevel 81
 ...

For DirectX 9 the value depends on the hardware's capability:

 mat_dxlevel 90 - DX9 with Shader Model 2
 mat_dxlevel 95 - DX9 with Shader Model 3

This can also be specified with Launch Options, use +mat_dxlevel [DirectX version] on the launch options of any Source game to do so. Alternatively, you can use -dxlevel [DirectX version], however this specifies a number of extra presets, including but not limited to:

  • Resolution
  • Windowed/Fullscreen status
  • MSAA quality (mat_aaquality) and sample count (mat_antialias)
  • Motion blur (mat_motion_blur_*)
  • Shadow depth textures
  • Gamma (mat_monitorgamma)
Warning.pngWarning:Using -dxlevel launch parameter makes alt tabbing in and out of the game really slow. It's better to use +mat_dxlevel launch parameter instead, or to place mat_dxlevel command inside a config file.

See Also

DirectX Versions