This article's documentation is for anything that uses the Source engine. Click here for more information.

Cpu level: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{LanguageBar}}
{{LanguageBar}}
{{This is a|console variable|name=cpu_level / gpu_level}}
{{This is a|console variable|name=cpu_level / gpu_level|engine=Source|since=Left 4 Dead}} It is the successor of [[mat_dxlevel]] on {{src07|1}} and earlier, and used to adjust shader & particle details.


Determines whether to render entities with following keyvalues. Usually changed by Effect details (cpu_level) and Shader details (gpu_level) in game settings.
{{Note|This console command is hidden by default (in {{l4d2|1}}), but can be changed using [[SourceMod]], using {{code|sm_cvar cpu_level}} or {{code|sm_cvar gpu_level}}, [[VScript]] using {{code|script Convars.SetValue("cpu_level", "0-3")}} or {{code|script Convars.SetValue("gpu_level", "0-3")}}, or can be forced via [[launch options]].
This can be also changed through in-game video options.
}}
{{todo|describe what else it affects}}
 
Also determines whether to render entities with following keyvalues. Usually changed by Effect details (cpu_level) and Shader details (gpu_level) in game settings.


{{KV SystemLevelChoice|seealso=}}
{{KV SystemLevelChoice|seealso=}}
== See also ==
* [[mat_dxlevel]]

Latest revision as of 22:16, 2 July 2025

English (en)Translate (Translate)

cpu_level / gpu_level is a console variable available in all Source Source games since Left 4 Dead Left 4 Dead. It is the successor of mat_dxlevel on Source 2007 and earlier, and used to adjust shader & particle details.

Note.pngNote:This console command is hidden by default (in Left 4 Dead 2), but can be changed using SourceMod, using sm_cvar cpu_level or sm_cvar gpu_level, VScript using script Convars.SetValue("cpu_level", "0-3") or script Convars.SetValue("gpu_level", "0-3"), or can be forced via launch options.

This can be also changed through in-game video options.

Todo: describe what else it affects

Also determines whether to render entities with following keyvalues. Usually changed by Effect details (cpu_level) and Shader details (gpu_level) in game settings.


Minimum / Maximum Effect Details Level (mincpulevel / maxcpulevel) <integer choices> (in all games since Left 4 Dead)
Don't render for players with Effect Details levels that exceed the minimum or maximum.
Choices
  • 0: Default ("Low" for mincpulevel, "High" for maxcpulevel)
  • 1: Low
  • 2: Medium
  • 3: High
Minimum / Maximum Shader Details Level (mingpulevel / maxgpulevel) <integer choices> (in all games since Left 4 Dead)
Don't render for players with Shader Details levels that exceed the minimum or maximum.
Choices
  • 0: Default ("Low" for mingpulevel, "Very High" for maxgpulevel)
  • 1: Low
  • 2: Medium
  • 3: High
  • 4: Very High

See also