Official Guide Votra's Autoexec

Valtorix

Self-Identified S.T.A.L.K.E.R
Joined
Sep 13, 2016
Messages
274
Nebulae
474
Huh, this looks extremely useful; my system is pretty damn outdated and old; but no harm in giving this a try!

Thanks for posting mate <3
 

TheRobsterDJ

Nucleus
Joined
Apr 26, 2016
Messages
1,999
Nebulae
3,145
with this config, i get much more fps but my game has frequent stutters + freezes - would anyone know why?

EDIT: it was mat_compressedtextures 0 causing that
 
Last edited:
Reactions: List

Carta Blanca

Mr. Steal yo Rations
Joined
Jul 25, 2017
Messages
120
Nebulae
116
I have a somewhat decent rig, but you know what gmod is like.. it couldn't run buttery smooth on a NASA grade computer - so thanks for this.
 

Khiel

Molecule
Joined
Sep 2, 2016
Messages
7,973
Nebulae
24,726
should insert notes stating what each command does in simple terms, makes it easier for people to figure out what's fucking up if they can just think "x is fucked" and then look in the autoexec for "changes x"
would be pretty neato
 

Votra

Retired
Joined
Jul 30, 2016
Messages
1,049
Nebulae
814
should insert notes stating what each command does in simple terms, makes it easier for people to figure out what's fucking up if they can just think "x is fucked" and then look in the autoexec for "changes x"
would be pretty neato

Good suggestion but I'm very inactive and that likely isn't going to happen anytime soon. You can type help in console then a space after and put the command in quotes without the value, e.g. help "mat_queue_mode" to get a brief description. Although you shouldn't change anything if you have no idea what you're doing unless its what I say you should change if you have a bad connection.
 

LykosNychi

Nucleus
Joined
Apr 28, 2016
Messages
1,279
Nebulae
1,487
Since using this autoexec, my Gmod constantly eats up all my memory to the point of an inevitable crash.


Which line is causing this, so I can remove it?
 

Votra

Retired
Joined
Jul 30, 2016
Messages
1,049
Nebulae
814
16. I thought that the ram might be a problem, so I tried halving the memory max, but I still have the issue.

All that cvar does is tell Garry's Mod it can use up to that much RAM. It will never actually use that much because its a 32-bit program. That's not your problem. If you think the autoexec is the problem, copy and paste it elsewhere to save it, then delete the copy in your cfgs. See if that fixes it. My bet is it won't.
 
Reactions: List

wack

A kidney-sized tumor.
Joined
Aug 6, 2016
Messages
1,864
Nebulae
1,147
VmhLH3x.jpg
So that’s what @Blackquill did >: (
 

LykosNychi

Nucleus
Joined
Apr 28, 2016
Messages
1,279
Nebulae
1,487
All that cvar does is tell Garry's Mod it can use up to that much RAM. It will never actually use that much because its a 32-bit program. That's not your problem. If you think the autoexec is the problem, copy and paste it elsewhere to save it, then delete the copy in your cfgs. See if that fixes it. My bet is it won't.
I mean, it is the problem- because as soon as I changed Autoexecs, Gmod stopped causing my computer to run out of memory. I also never had the problem until I used your autoexec- and never had the problem after I stopped.

while it does cause my game to run much better on CW, removing a lot of the stuttering, it also causes some sort of insane memory leak that is guaranteed to crash the game within a couple of hours.

:grinning:
 

Votra

Retired
Joined
Jul 30, 2016
Messages
1,049
Nebulae
814
I mean, it is the problem- because as soon as I changed Autoexecs, Gmod stopped causing my computer to run out of memory. I also never had the problem until I used your autoexec- and never had the problem after I stopped.

while it does cause my game to run much better on CW, removing a lot of the stuttering, it also causes some sort of insane memory leak that is guaranteed to crash the game within a couple of hours.

:grinning:

An auto-exec can't cause a memory leak. A memory leak occurs when an object is stored in memory but can't be accessed, autoexec is just plain text commands setting values or turning something on or off that extends what you can do in your options menu. It is either the engine or a mod causing the problem.

That being said, try removing these commands:
Code:
r_threaded_particles 1
r_threaded_renderables 1
r_queued_ropes 1
r_threaded_client_shadow_manager 1
mem_max_heapsize "8192"
threadpool_affinity "8"
snd_mix_async 1
in_usekeyboardsampletime 1
ai_expression_optimization 1

cl_threaded_client_leaf_system 1
cl_threaded_bone_setup 1
cl_smooth 0
cl_wpn_sway_interp 0

If that doesn't work, also remove
Code:
mat_dxlevel 95
mat_specular 0
mat_compressedtextures 0

Disable any client-side mods.
 

LykosNychi

Nucleus
Joined
Apr 28, 2016
Messages
1,279
Nebulae
1,487
An auto-exec can't cause a memory leak. A memory leak occurs when an object is stored in memory but can't be accessed, autoexec is just plain text commands setting values or turning something on or off that extends what you can do in your options menu. It is either the engine or a mod causing the problem.

That being said, try removing these commands:
Code:
r_threaded_particles 1
r_threaded_renderables 1
r_queued_ropes 1
r_threaded_client_shadow_manager 1
mem_max_heapsize "8192"
threadpool_affinity "8"
snd_mix_async 1
in_usekeyboardsampletime 1
ai_expression_optimization 1

cl_threaded_client_leaf_system 1
cl_threaded_bone_setup 1
cl_smooth 0
cl_wpn_sway_interp 0

If that doesn't work, also remove
Code:
mat_dxlevel 95
mat_specular 0
mat_compressedtextures 0

Disable any client-side mods.
I don't use mods.


An autoexec could 100% cause issues with overusing and leaking memory if it changes how the game utilizes and processes memory.

I will try this shortly.
 

MaXenzie

Sexually attracted to robots
Media Developer
GTA RP Playtester
Joined
Apr 26, 2016
Messages
17,275
Nebulae
24,626
will these config change something in my game? any visual thing or? i don't want gmod to look like minecraft

not really

it just changes how the game handles behind the scenes stuff and does some multithreading