Skip to content

Left 4 Dead 2 - Add optimizations in video.txt, autoexec.cfg and set correct launch options #1

@V3nilla

Description

@V3nilla

As a competitive player, that played on T1 Competitive servers only for 5.5k hours, i see - many of these settings are incorrect at all.

video.txt section(less effects, lower details and much better fps):

"config"
{
	"setting.cpu_level"		"1"
	"setting.gpu_level"		"-1"
	"setting.mat_antialias"		"0"
	"setting.mat_aaquality"		"0"
	"setting.mat_forceaniso"		"0"
	"setting.mat_vsync"		"0"
	"setting.mat_triplebuffered"		"0"
	"setting.mat_grain_scale_override"		"0"
	"setting.mat_monitorgamma"		"1.600000"
	"setting.gpu_mem_level"		"-1"
	"setting.mem_level"		"-1"
	"setting.mat_queue_mode"		"2"
	"setting.defaultres"		"1920"
	"setting.defaultresheight"		"1080"
	"setting.aspectratiomode"		"0"
	"setting.fullscreen"		"1"
	"setting.nowindowborder"		"0"
}

autoexec.cfg section:

// Sv_cheats 1 for enabling some commands, we will disable this later
sv_cheats 1

// Aliases
alias "+showscores_custom"						"+showscores; net_graph 3"
alias "-showscores_custom"						"-showscores; net_graph 0"
alias "recordfix"								"r_cleardecals; record demofix; stop"
alias +mfwd "-back; +forward; alias checkfwd +forward; dsp_volume 0"
alias +mback "-forward; +back; alias checkback +back; dsp_volume 0"
alias +mleft "-moveright; +moveleft; alias checkleft +moveleft; dsp_volume 0"
alias +mright "-moveleft; +moveright; alias checkright +moveright; dsp_volume 0"
alias -mfwd "-forward; checkback; alias checkfwd none"
alias -mback "-back; checkfwd; alias checkback none"
alias -mleft "-moveleft; checkright; alias checkleft none"
alias -mright "-moveright; checkleft; alias checkright none"
alias checkfwd "none"
alias checkback "none"
alias checkleft "none"
alias checkright "none"
alias none ""

// Binds
bind "F5"										"recordfix" // Fixing invisible SI, most vulnerable SI is - Tank. Somehow, it also lowers your ping
bind "TAB"										"+showscores_custom"
bind "W" "+mfwd"								// Fixing sound position because of DSP
bind "A" "+mleft"								// Fixing sound position because of DSP
bind "S" "+mback"								// Fixing sound position because of DSP
bind "D" "+mright"								// Fixing sound position because of DSP

// Game Volume, Voice Chat and Close Captions
snd_musicvolume									0
dsp_enhance_stereo								1
dsp_slow_cpu									0
dsp_volume										0
snd_mixahead									0.045
voice_enable									1
voice_loopback									0
voice_modenable									1
voice_scale										1
voice_threshold									0
voice_vox										0
closecaption									1
cc_lang											""
cc_linger_time									0.5
cc_predisplay_time								0
cc_subtitles									0

// Mouse Settings
m_customaccel 									0
m_mouseaccel1                                   0              
m_mouseaccel2                                   0
m_mousespeed                                    0
m_customaccel_exponent                          0
m_customaccel_max                               0
m_customaccel_scale                             0
m_filter										0
m_filter2										0
m_rawinput										1
m_yaw											0.022 // To get sens feels like on 16:9, but you're playing on 4:3 resolution, just change yaw from 0.022 to 0.0165
m_pitch											0.022
m_pitch2										0.022

// Network Settings
rate											128000
cl_cmdrate										128
cl_updaterate									128
sv_minrate										128000
sv_maxrate										128000
sv_mincmdrate									128
sv_maxcmdrate 									128
sv_minupdaterate								128
sv_maxupdaterate								128
cl_interp_ratio                                 -1
cl_interp                                       0
cl_lagcomp_errorcheck                           1
net_chan_limit_disabled                         1
cl_allowdownload								1
cl_allowupload									1
cl_autohelp										0
cl_downloadfilter								nosound
net_graph										0
net_graphheight									0
net_graphpos									320
net_graphproportionalfont						1
net_graphshowinterp								0
net_graphshowlatency							0
net_graphsolid									0
net_graphtext									1
net_scale										999
cl_lagcompensation								1
cl_predict										1
cl_predictweapons								1
cl_resend										1
cl_timeout										15
net_maxroutable									1280
net_splitpacket_maxrate							64000
net_splitrate									2
net_allow_multicast								0
sv_region										255
sv_allow_lobby_connect_only						0
mm_dedicated_search_maxping						70

// Main Settings(Graphics, Visibility)
mat_monitorgamma								1.6
mat_monitorgamma_tv_enabled						1
mat_spewalloc									0
budget_show_history								0
adsp_debug										0
cl_bobup                                        0
cl_detail_avoid_force							0
cl_detail_avoid_radius							0
cl_detail_avoid_recover_speed					0
cl_detail_max_sway								0
cl_detailfade                                   0
cl_detaildist                                   0
cl_perf_wizard_enable							0
cl_ragdoll_limit								0
cl_forcepreload									1
cl_idealpitchscale								0.8
cl_menuduration									10
cl_observercrosshair							0
cl_perf_wizard_enable							1
cl_show_path									1
cl_showpluginmessages							0
cl_chatfilters									31
cl_chat_wipehistory								0
func_break_max_pieces							0
cl_phys_timescale								1.0
mat_bloom_scalefactor_scalar					0
mat_grain_scale_override						0
mat_queue_report                                0
mat_showmiplevels                               0
r_cheapwaterend									1
r_cheapwaterstart								1
r_ambientfraction								0.2
r_radiosity										4
r_dynamic										0
r_eyemove										0
r_eyeshift_x									0
r_eyeshift_y									0
r_eyeshift_z									0
r_eyesize										0
r_shadowdist                                    200
r_PhysPropStaticLighting						0
r_skyboxfogfactor                               0
z_wound_client_disabled							1
cl_ideal_spec_mode								4
cl_playerspraydisable							0
cl_showhelp										0
con_enable										1
gameinstructor_enable							0
sv_skyname										sky_urb01
sv_pvsskipanimation								1
hud_classautokill								0
hud_takesshots									0
motd_enabled                                    0
motd_intros										0
muzzleflash_light								0
joystick										0
l4d_delete_temp_files							0
sc_enable										0
sc_enable2										0
spec_allowroaming								1
engine_no_focus_sleep							0
props_break_max_pieces                          0
props_break_max_pieces_perframe                 0
fps_max											999

// Glows(More accurate glows, better info about teammates, enemies)
cl_glow_ghost_infected_r						1.00
cl_glow_ghost_infected_g						1.00
cl_glow_ghost_infected_b						1.00
cl_glow_infected_r								0.00
cl_glow_infected_g								1.00
cl_glow_infected_b								1.00
cl_glow_survivor_r								0.00
cl_glow_survivor_g								1.00
cl_glow_survivor_b								1.00
cl_glow_survivor_health_high_r					0.00
cl_glow_survivor_health_high_g					1.00
cl_glow_survivor_health_high_b					0.00
cl_glow_survivor_health_med_r					1.00
cl_glow_survivor_health_med_g					1.00
cl_glow_survivor_health_med_b					0.00
cl_glow_survivor_health_low_r					1.00
cl_glow_survivor_health_low_g					0.25
cl_glow_survivor_health_low_b					0.00
cl_glow_survivor_health_crit_r					1.00
cl_glow_survivor_health_crit_g					0.00
cl_glow_survivor_health_crit_b					0.00
cl_glow_survivor_hurt_r							1.00
cl_glow_survivor_hurt_g							0.00
cl_glow_survivor_hurt_b							0.00
cl_glow_survivor_vomit_r						1.00
cl_glow_survivor_vomit_g						0.00
cl_glow_survivor_vomit_b						1.00
cl_glow_infected_vomit_r						1.00
cl_glow_infected_vomit_g						0.00
cl_glow_infected_vomit_b						1.00
cl_glow_item_r									0.00
cl_glow_item_g									1.00
cl_glow_item_b									0.00
cl_glow_item_far_r								1.00
cl_glow_item_far_g								0.25
cl_glow_item_far_b								0.00
cl_glow_thirdstrike_item_r						1.00
cl_glow_thirdstrike_item_g						0.00
cl_glow_thirdstrike_item_b						0.00
cl_glow_ability_r								1.00
cl_glow_ability_g								1.00
cl_glow_ability_b								0.00
cl_witch_glow_idle_r							1.00
cl_witch_glow_idle_g							1.00
cl_witch_glow_idle_b							0.00
cl_witch_glow_angry_r							1.00
cl_witch_glow_angry_g							0.00
cl_witch_glow_angry_b							0.00
cl_glow_survivor_health_bleed_pulse				1
cl_glow_survivor_health_bleed_pulse_amount		0.85
cl_glow_survivor_health_bleed_pulse_speed		15
cl_glow_survivor_health_include_buffer			1

sv_cheats 0
host_writeconfig

Launch options:

-high -lv -novid +mat_motion_blur_percent_of_screen_max 0 -console -useforcedmparms -noforcemaccel -noforcemspd +clientport 27666 -nojoy -noipx -nohltv -preload -softparticlesdefaultoff -noff -primarysound -snoforceformat -gl -nomsaa -noaafonts -precachefontchars -full -nouserclip -cl_disablehtmlmotd 1 -limitvsconst -nosteamcontroller

Launch options needs to be changed with disabled Steam on background in this folder, to avoid 255 symbol limit in Windows.
Path to the folder - C:\Program Files (x86)\Steam\userdata\YOUR-Steam32ID-NUMBERS\config\localconfig.vdf
Your SteamID32 Numbers can be found here, just copy your steam profile link and paste it in this website - https://steamid.xyz/
Changes needs to be done here:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions