Garry's Mod

Garry's Mod

NPC Tranquilizer Gun
Major performance issue
Originally posted by Dave Pipebomb:
This is a really nice addon, nice work! I did discover though that the function responsible for rendering the "Zzz" effect (LambdaTranq_DrawZZZs) is spending a lot of time running when the effect is not active, including if the tranquilizer gun was never used during a session. This can translate into a notable decrease in framerate, especially on lower end hardware.

I have over 300 addons and this singular addon is the worst performing one of them all when I've spawned into an empty map and with nothing happening. I lose 30 frames from this addon just by having it enabled on an i9 13900KS I don't even want to think about people with weaker CPUs than mine enabling this addon. I'd really appreciate it if you could please optimize your mod.