Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Making Garry's Mod run faster with Source shenanigans
This game was made a very long time ago, back before even quad core processors hit the market yet. Today though, we see quad core as the minimum, with often six, eight, twelve and sixteen core processors being feature in gaming computers. Garry's Mod isn't built to utilize them, but there are some tricks in the infinitely long sleeve of the source engine we can use to do it anyway. There are also a few other things we can do to improve performance.

Optimizing Garry's Mod for multithreaded processing (THESE HELP THE MOST)

In your autoexec.cfg, add these commands:
gmod_mcore_test 1
mat_queue_mode -1
cl_threaded_bone_setup 1
  • gmod_mcore_test 1 enables experimental multicore processing for gmod. Under very rare conditions this might cause a crash on some models of processors. I have been using it for 5 years without trouble.
  • mat_queue_mode -1 sets the material system to use queued multithreading mode instead of synchronous singlethreaded mode. In English, it sets texture processing to be sent to multiple cores instead of just one. Benefits laptops the most
  • cl_threaded_bone_setup 1 enables multithreading for bone processing for things like animation and footsteps.

General setting changes

In your autoexec, add these lines:
mat_motion_blur_enabled 0
mat_reducefillrate 1
mat_vsync 0
cl_forcepreload 1
cl_ragdoll_collide 0
mat_specular 0
  • mat_motion_blur_enabled 0 disables motion blur. This doesn't make anything faster but you should really have this setting off in TTT.
  • mat_reducefillrate 1 reduces shader quality. Some shadows may look grainy
  • mat_vsync 0 disables vsync. If you have major screen tearing, set this to 1
  • cl_forcepreload 1 forces all map textures to be loaded before joining the map. This increases load times but boosts FPS.
  • cl_ragdoll_collide 0 disables ragdoll collisions
  • mat_specular 0 disables the shine on things like metal and floors. Also fixes some missing texture problems. Makes the game look more dull, though.

Launch options

In your launch options, set these options:
-high -nojoy -d3d9ex -windowed -noborder
  • -high sets the process priority to high
  • -nojoy disables joystick support, reducing memory requirements
  • -d3d9ex changes the DirectX 9 mode, speeding up alt tab in fullscreen on some GPUs
  • -windowed puts gmod in windowed mode
  • -noborder removes the windowed mode border, which simulates fullscreen, without the issues that real fullscreen causes
Using the 64-bit executable & Chromium web renderer

Follow the guide by bryanbrr to learn how to do this. Using a 64-bit executable doesn't make a huge difference other than being able to use more than 4GB of memory, but the Chromium renderer is much faster than the default Awesomium renderer.

More aggressive setting changes

You can add either the "Potato" config or the "Beyond Potato" config to your autoexec (but not both). Alternatively, you can add a mix of the options from this forum thread.

[Image: unknown.png]

autoexec.cfg is a config automatically ran at the game start. Configs, or .cfgs are lists of console commands that are ran one after another. When you load console commands into a cfg and run the cfg, you are running all of those console commands with just one command. In the case of autoexec.cfg, it's ran automatically when the game starts.

autoexec.cfg is at steamapps\common\GarrysMod\garrysmod\cfg\autoexec.cfg, if you don't have one create one. Edit it with notepad.

I recommend splitting up your autoexec into pieces by using enter. I have a section for my multithreading stuff, a section for my fps and ping displays, a section for random performance tweaks, a section for console filtering, and a section for aliases. Here is my autoexec:
[Image: unknown.png]

If you need any help following this guide, feel free to contact me through the Discord or through forum PM.
[Image: horizontal-design-element-3.png]
welcome to my forum signature!!!!!!!!!!!!!
2 years since timed mutes and gags 1
10 months since muteban (timed mutes and gags 2)

Garry's Mod Performance Tuning Guide
@ admins can we pin this to guides
(03-08-2021, 01:55 AM)two rats kissing Wrote: @ admins can we pin this to guides
@ admins

Forum Jump:

Users browsing this thread: 1 Guest(s)

About Us
    This is Dinkleberg's GMod, a gaming community based in Garry's Mod. We have a Trouble in Terrorist Town, Prop Hunt, Murder, and Deathrun Server. Come check them out sometime.