mat_shading_complexity_max_instruction_count Command

Explore usage, syntax, and examples for the mat_shading_complexity_max_instruction_count CS2 developer console command.

mat_shading_complexity_max_instruction_count

CS2 Only

Command

mat_shading_complexity_max_instruction_count

<Instruction Count>

Sets the maximum number of instructions a shader can use, controlling shader complexity. Useful for testing performance and optimization.

<Instruction Count>

Maximum number of instructions allowed in a shader.

sv_cheats Required

Yes

Client or Server Command

Unspecified

Default Value

1024

mat_shading_complexity_max_instruction_count Generator

Command

mat_shading_complexity_max_instruction_count

<Instruction Count>
0/1 Arguments Selected

Set the options below to auto-generate your command. When everything looks good, click the Copy button and paste it into your in-game console.

mat_shading_complexity_max_instruction_count Examples

Command

mat_shading_complexity_max_instruction_count

512

Limits shaders to 512 instructions, which may improve performance but reduce visual quality.

Command

mat_shading_complexity_max_instruction_count

2048

Raises the shader instruction limit to 2048, allowing for more detailed shaders with possible performance costs.