Garry's Mod

Garry's Mod

Not enough ratings
Sunrust Zs | Getting Performance
By Pixelzul
My PC is not the best (core i3 2nd Gen/Nvidia gt710. I got 60fps lol) , but even PCs with better specs can swear and have fps drops at the end of the game.

So here is a basic guide to how get more fps in Sunrust Zs. (still early work in progress) last updated [19/03/2023] new update coming-soon
   
Award
Favorite
Favorited
Unfavorite
Sunrust
(For new Players, you can skip it)

Originally posted by Sunrust Wiki:
Sunrust is a Garry's Mod community based on a lax ruleset and a strong development foundation.
Our development process strives to come under the definition of Continuous_delivery[en.wikipedia.org]

Zombie Survival is a team-based game mode available to play in the 2006 Garry's Mod sandbox. It consists of 2 teams: Human and Zombie. The goal of the human team is to survive 6 waves of the zombie horde and escape when the time is up to win. On the other hand, the zombie team is tasked to eliminate every surviving member of the human team by any means. The human team loses if it is wiped out.

Servers:
Zombie Survival Main - game.sunrust.org:27015
Zombie Survival Point Save - game.sunrust.org:27016
Have fun!

Sunrust Group:
https://steamhost.cn/steamcommunity_com/groups/sunrust

Visit the oficial Sunrust Wiki for extra information.
https://sunrust.org/wiki/index.php?title=Main_Page

Sunrust Discord:
https://discord.gg/sunrust

Predowload the Content
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2484843786
Reduce your joining time.
In game menus.
First: You need to be in game

and so press f4, you will get a menu displayed:

go to performance



and activate all the options that says "more fps"
(work in progress)

Enable Console.
You need the Developer Console to run the commands. so first, you have to "enable" your Gmod console:

In the main menu click in "Options", "keyboard" and go to the bottom, add a key to toggle the developer console.

Multicore.
This command greatly improve framerates on multi-core CPU systems.

Gmod runs in 32 bits (x86) by default using only one core of your CPU, but you can enable multicore using the comand:

"gmod_mcore_test 1"

This command enable multicore, but only temporarily, (just while you are playing on a single map) so you have to write or use a bind to activate multicore everytime you change map or leave.

for example (write in console)
bind m "gmod_mcore_test 1"
Gmod x86-x64 Beta.
Using 64bits (x64) has many advantages, a video player (nedeed for cinema), web support, but most important, multicore is by default always enabled in this version.

(if you dont have a x64 pc jump to ."cfg, for really potato pc")
Activate Gmod x64 support:

Go to your Steam library, right click on Gmod, properties, and then go to betas and select the beta named:
x86-64 Chromium + 64 bit binaries

Close the tab (Configuration is saved automatically)
Gmod will download a update.

Every time you want to play x64, you have to open the game directly from the library, otherwise the game will open in x86 mode (32bits).

Just click play, a window will appear, select x64.



Spark Cosmetics.
This is a powerful command that can give you a lot of fps. The command disables cosmetics and hats, (which are poorly optimized) but doesn't affects skins:

"Spark_cosmetics 0"

Irecommend having a key assigned to enable and disable whenever you want.
(where 0 is disabled) example:

bind m"Spark_cosmetics 0"
bind n"Spark_cosmetics 1"
Transparency radius.
Another thing that can have impact on performance are the player models. When the players arent displayed on screen the fps increase, less players better performance but since we cant just kick players we have to make them transparent.

Sunrust have a command that allows you to change the range in which players are visible:
(Make sure that the key that are you binding is not in use)

bind x"incrementvar zs_transparencyradius 0 1000 1000"

I recommend having two keys, one for normal mode, and another for the end of the game because you dont have to stay outside:

For early game:
bind x"incrementvar zs_transparencyradius 0 800 1000"

For late game:
bind z"incrementvar zs_transparencyradius 0 5000 1000"

(idk why but since last time i played is broken, sometimes the keys doesnt work)

(work in progress)
GPU Performance Mode
Things to Know:
Since i speak spanish:
"Rendimiento" = Performance
IGPU Integrated Graphics Processing Unit (is built in your CPU and is less powerfull)

How Enable Performance Mode.:
Your gpu has many useful options, quality/performance is an option that does what it says, improve the experience based on what you select, We want Fps so we will use performance.

it works for IGPU and GPU, I use Both IGPU and GPU to play so i will show you how to with Intel and Nvidia.

Right Click in your desktop


Click in settings.



(INTEL LINE)
Intel:

(NVIDIA LINE)
Nvidia:


(Work in Progress)
Turning Down Particles.
This is a FPS Killer

there is an issue with old particles if disabled and replaced with the new ones (old HL2 update related) it can perform better (update incoming)

by now
you can go to the in game settings and find the particle amount and draw distance, turn it down.

from wiki:
"It is best to keep some particles, this is important as some particles give you information, especially if they can damage or affect you."

i am on it... just wait (omg 2 years since this, this is taking too much)
(work in progress)

Dont use this yet.
cl_particles_dump_effects
cl_particles_show_bbox "0"
cl_particle_batch_mode "1"
cl_particle_max_count "0"
cl_particle_retire_cost "0"
g_antlionguard_hemorrhage "1" // guard will emit a bleeding particle effect when wounded.
LuaParticle_SettleSpeed "100"
mat_reduceparticles "0"

r_drawparticles "1" // Enable/disable particle rendering
r_threaded_particles "1"
showparticlecounts "0" // Display number of particles drawn per frame

FPS FOG
By default thing are rendered even if you cant see them thanks to the fog, but with this addon things that you cant see through the fog don't get rendered, boosting your fps when there is fog.

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2925774481


Overdraw
There is a limit on each gpu of how many pixels can be drawn on the screen peer frame, this can cause a lot...
(coming soon)
Autoexec.cfg
i said that i have a i3 2nd gen?, i dont have used this yet, my performance is good. now back with the guide.... or thats what i thought, just try it.

I GOT AVERAGE 120 FPS!



How To gain a lot of FPS:
First you have to find your gmod game folder.

(almost riped from the official wiki xd)
To find exec.cfg, go to your Garry's Mod folder in your steamapps, garrysmod, and cfg, there you should find the autoexec.cfg. (you can edit the file with notepad)

Make a backup just in case. After that, type "-exec autoexec"

List:
if you dont have a x64 pc (lol... ok no) put "gmod_mcore_test 1" (delete ") into the list

r_3dsky 0;
r_cheapwarend 1;
r_decals 2 000 000 (delete the space between 0s) ;
mat_antialias 0 ;
mat_bumpmap 0 ;
cl_forcepreload 1 ;
r_fastzreject -1 ;
studio_queue_mode 1 ;
cl_threaded_bone_setup 1 ;
net_graph 1 (just if you want to see fps, ping, etc) ;
cl_showpos 1 ;
mat_reducefillrate 1 ;
mat_trilinear 0 ;
mat_fastspecular 1 ;
cl_new_impact_effects 0 ;
cl_show_splashes 0 ;
r_worldlights 0 ;
mat_shadowstate 0 ;
r_shadows 1 ;
r_flashlightdephtexture 1 ;
r_shadowrendertotexture 0 ;

potato graphics for potato pcs but.
-Smooth as Ice
Manually Specified Threads [new]
This command is the unleashed version of the multi thread tweak. my performance got even better, one time i got 600fps somehow (at the end when zteam killed the last human) with the same gt710.

"According to Mike Durand Developer at Valve, The source engine defaults to taking advantage of no more than three threads due to various issues."

"however a user can manually override this limitation by specifying -threads X ,on the command line" (startup options)

Based on this video: https://www.youtube.com/watch?v=nG8nbI2FfBU
Decrease Join Time
(future update based on Automated Updating)

Decrease the time needed to join the server by pre-downloading all the content needed to play ZS
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2484843786
Predownload that heavy map and dont suffer a Late Join: (upgrades coming)
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2484850621
When there are events (scheduled on discord) and the map version is available at the workshop.
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3042752618
Sunrust Lite
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3029331917
[searching for lua startup optimization]
Stuttering
based on this video
https://www.youtube.com/watch?v=oh6hamdxlN0

Gmod have a big issue with reads from the disk as you can confirm when playing on sandbox and entering on a folder with files, your game will stutter a lot or even stop for some seconds.
Ii think its because it cant read while rendering at the same time, so if an addon requires a file and it cant be found by the game it will pause the render to search for the file for a couple milliseconds but enough to be perceived.

If you have a cheap hdd consider buying another cheap hdd but just for your steam library, i personally got surprised by the performance you get
(the bad thing is that in some situations the disk will suspend after inactivity and will have sporadic stops and writes which makes it wear more) but if it was cheap... (it may have a solution to make the disk keep runing if gaming searching....)

(searching)
Errors & glitches
only one lul.

in case that you cant see some props try this in console:
r_flushlod
Extras & Wiki
I wrote the guide a bit dummy-proof | Sunrust Zombie Survival Performance Guide |

Questions:
Why i use Immersive hands? - TheAngryDoggo
Have less Polygons in HL2 Base Models.

why i die every time i go ouside? - ?
because i have a S-H1 T HDD THAT EVERY TIME FREZEEs MY GAME
(still does) i will fix it i swear.

You have litle fps drops? - me
try with fps_max 80, the drops will not be noticeable at all. (windows)

////EXTRA////
show fps
cl_showfps 1
show more info and fps
net_graph 1

mute map background music
bind [key] stopsound
View all your current binds:
key_listboundkeys

Try this new ZS hud skin:
zs_sunhud 1

Maybe the lag is good.
The experience with lag can make the game more fun, the fear of going out and dying is greater, rage can be fun to watch.

visit the oficial Sunrust Wiki for extra Performance information.
https://sunrust.org/wiki/index.php/Performance/Settings
Dont Forget Like & Fav
It helps!


Need More FPS
Future Guide for performance
you can see that the guide has some optimizations beyond just the gamemode, i am considering moving all these configurations for performance to a separated guide, and adding more in deep the limitations and related to the sunrust server like lua and addons taking to load.

[stay tunned!]

Currently i am focused on Linux, if you thing you can help with the guide be free to leave a comment.

Linux can give you even more fps
after some tweaks:
check my guide for playing Gmod (linux)
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2843537933
in the seek for performance with my current hardware i jumped into linux, and while it has its quirks wow.

Future guide detailing configurations and in deep performance for gmod:
(still not on that point yet, by now i am playing on linux which have its own quirks to performance, and yess, the mighty gt710 is still in use as my main gp (althought i added an amd hd2670... what a "improve" heh), for all the low spec gamers.
SR Comands
Radious

remove 3d labels
Notes for me
-add windows and linux compatibility consideration to the guide
15 Comments
Pixelzul  [author] 13 May @ 7:40pm 
sorry for reading it this late, but it seems like you should be running much more higher fps than me, and that's currently my average performance but with way worse specs, normally a gt710 with 1gb of vram shouldn't compete against a RTX 3070, it may be something with your configuration, gmod depends more on single core performance for the cpu by how it was programmed , and the single core performance haven't changed that much for modern cpus, or considering that is a laptop perhaps could be thermal throttling, i wouldn't recommend buying better hardware unless you are planing to play more modern games. i recommend going the optimization route, like using Vulkan, using a custom .cfg, Serious Soul plays often in the server and has some guides in performance for gmod, and a custom .cfg for ZS.
kevin 28 Aug, 2024 @ 10:27am 
hey there! thanks for the guide. I currently am running a RTX 3070 (Laptop) and Ryzen 7 5800h on the Sunrust Server and the tips have been helpfully, especially the transparency radius. However, with the specs that I have, would you advice on me upgrading my specs to get more FPS? I run around 40-60fps on most rounds with the exception of Round 1 giving me around 100+fps. I know other people like Scrungus (https://www.youtube.com/@scrungus8742) get really stable FPS, around 100fps+ dropping to 70fps at round 6 (scrungus runs on a AMD Ryzen 9 5900X).
Pixelzul  [author] 1 Aug, 2024 @ 10:25pm 
i am not sure but it may be that it struggles to have more than 60 PMs at at the time, i still dont know why 60 but i hope i find it. (you can test this by spawning more than 60 NPCs For example
Pixelzul  [author] 12 Jul, 2024 @ 2:48pm 
@Monster I am aware of an issue where like you say if there are 60 or more players, (in my case) Gmod performance drops, I am still searching to why is that. if you know how to get the logs i can help a litle, i would appreciate if you posted your System Specs, Garry's Mod, and any Nvidia logs. Also run steam via console so you can see more about what happens when the game crashes
Monster 31 Mar, 2024 @ 3:26pm 
60 or more players- gmod crashes. says something about gpu insufficiency but i have a gtx 1050 ti
Monster 31 Mar, 2024 @ 3:21pm 
well i used to not be able to join at all now it just drops to about 1 frame per minute. I have normal framerate at 60 or below players then suddenly gmod goes bananas if more join any idea whats causing it
Pixelzul  [author] 6 Feb, 2024 @ 10:09am 
oh, yes the Options Menu was updated since the last time i took a screenshot, i will update it.
NeirReign 18 Dec, 2023 @ 2:40am 
how you made like fast options like aaah.. you know?

is options old version or new?

we can change??
rosen 10 Nov, 2023 @ 11:21am 
this guide helped me
Tupoy 28 Oct, 2022 @ 10:13pm 
fuck i remember this. i need to come back