Garry's Mod

Garry's Mod

156 ratings
Horde Optimizer
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Fun
File Size
Posted
Updated
9.735 KB
5 Jun, 2023 @ 6:46am
12 Oct, 2023 @ 6:50pm
15 Change Notes ( view )

Subscribe to download
Horde Optimizer

Description
About
A simple mod that can help save resources when there are a lot of NPCs. It is mainly for people who like to play horde survival.

Features
  • Disables rendering for NPCs you cannot see (this does not happen by default for some reason?).
  • A fog system that disables rendering for anything beyond the designated maximum draw distance.
  • The fog system also includes an adaptive mode, which reduces draw distance based on the number of NPCs.

Commands
ho_enabled - Toggle Horde Optimizer. ho_fog_enabled - Toggle clipping fog. ho_fog_adaptive - Toggle adaptive fog (lowers ho_fog_dist based on NPC count). ho_fog_adaptive_ratio - How much render distance a single NPC costs. ho_fog_dist - How far you can see through the fog. ho_fog_r - The amount of red in fog color. ho_fog_g - The amount of green in fog color. ho_fog_b - The amount of blue in fog color.

If you want to bug report, please do so in the "Discussions" tab for ease of communication.
Popular Discussions View All (2)
2
6 Jun, 2023 @ 10:41pm
Vanilla Fog Effects are gone (Bug Report)
syahmi2002.sa
1
13 Jun, 2023 @ 8:52pm
Doesn't work with Nextbots. (Not sure if buggy or intentional)
paw1999
35 Comments
Darkness 21 hours ago 
"this does not happen by default for some reason?" source does not use gpu culling or any other kind of occlusion. instead, it's all done using binary space partitioning, which has its quirks, that being overdraw in scenarios where the mapper does not care about bsp
feddifasber 14 Jul @ 3:42am 
can you please add a feature where you can turn off the horde optimizer for certain entities? turrets disappear when knocked over, striders are just a pain to fight because they constantly turn invisible, it probably wouldnt do much to your system just turning it off for them because they aren't spawned in hordes frequently. (p.s npc battles are now so much better thnak you)
♬♫~Joe Blaze~♫♬ 2 Jul @ 3:47pm 
Not useful when sniping or shooting from afar.
NAgamer 22 Feb @ 4:11pm 
this causes a duplicate npc to appear when performing a killmove with bsmod
StafkiGTN 21 Feb @ 12:46am 
the fog scared me and made me think my addons were compromised, cool addon though,. maybe i should read first </3
StickGuy 11 Jan @ 10:24pm 
or vj??
StickGuy 11 Jan @ 10:23pm 
does this work for snpcs?
Mourning Intelligence 22 Dec, 2024 @ 2:31pm 
Could there be a toggle that prevents some entities from not being rendered? The Gargantuan from black mesa flickers when half of it is behind something. Could be as simple as; "Copy paste model / npc name and it will be blacklisted from the optimization" or is it not that simple to add?
kaydenrayner5 2 Dec, 2024 @ 8:36am 
ISTG I WAS GOING CRAZY OVER THE FOG
ITS JUST THIS MOD
sora1d  [author] 6 Nov, 2024 @ 10:08pm 
Did I leave it on by default lmao