Garry's Mod

Garry's Mod

View Stats:
Lots of NPC = Low FPS | Any possible solution for optimized NPC system?
Hey guys!

I'm really curious about your opinions. I'm still not 100% familiar with the engine (obviously), but I know, sadly from experience, the NPCs are truly demanding and drains your computer resources quickly, depends on the NPC type actually. Usually the problem aren't the models but the the way NPCs working, moving around, making decisions, etc... The system isn't bad, but super slow.

What do you think? Would it be possible to make simple node or navmesh based NPCs that are much more optimized, sacrificing some of their "intelligence"?

I know it's an old engine, but it's a shame, NPCs are handled this badly in term of performance. Also what is faster? Node Graphs or Navigation Meshes?
< >
Showing 1-9 of 9 comments
Train Feb 10, 2018 @ 1:41pm 
node graphs are for npcs, nav meshes for nextbots.
there's really no work around to this, just don't use too many npcs and get some addons that clean up dropped weapons.
Indiana Jones Feb 10, 2018 @ 10:15pm 
I don't always use a lot of npcs but when I do I go balls deep, and if I space them out it doesn't cause any lag, only if you spawn an excess amount will it lag you so horribly, I also recommend not using the duplicator to easily spawn npcs for some reason that causes lag. Just do it the normal way.
꧁Jay꧂ Feb 11, 2018 @ 10:49am 
Originally posted by BLUE SPEED MOUSE:
Enable Multi-thread support https://steamcommunity.com/sharedfiles/filedetails/?id=693814244
Your best option here
CoreRelief Feb 12, 2018 @ 8:05am 
I found i had less lag with NPC's when i disabled some of my useless addons.
Trollegen Oct 31, 2021 @ 9:56am 
well my simple work around the sometimes works.
When there is alot of friendly npcs i spawn 1 enemy npc so npcs wont be in idle mode and not take up much fps
Boruvkov Aug 4, 2023 @ 9:20am 
The issues with NPC still persist. I am playing a lot against NPC and it's absolutely ridiclous that GMod halts down to a crawl. Even Cyberpunk 2077 is more optimized than this, what a sick joke.
Tails72 Feb 17, 2024 @ 12:47pm 
anyone knows how to optimize netboxts? because when i try my own sanic run it stutters as hell!
melomelo May 1, 2024 @ 4:29pm 
Originally posted by KometFox:
The issues with NPC still persist. I am playing a lot against NPC and it's absolutely ridiclous that GMod halts down to a crawl. Even Cyberpunk 2077 is more optimized than this, what a sick joke.

What's your specs? I have an i7 13650HX and ranks 104% in Userbenchmark, and spawning a hundred NPCs without Keep Corpses on gives me 30 fps, when I have 350+
< >
Showing 1-9 of 9 comments
Per page: 1530 50

Date Posted: Feb 10, 2018 @ 1:36pm
Posts: 9