Widgets Disabler

del. thread.

This is a bad philosophy to take to optimisation. Besides you removing random hooks and timers without any explanation, you are removing features for little to no gain. The only thing in that file that should actually be removed for excessive overhead is the PlayerTick for widgets, and you can easily refactor it to where the hook is re-enabled when a widget is spawned. This has been copied-and-pasted so many times between DarkRP communities whose “developers” think that their lag problems come from these select timers and hooks when really it’s the massive amount of addons they’re shoving into the server with no regard for integration.

[editline]21st September 2017[/editline]

Not to mention all of these render hooks just do a simple check to see if the effect is enabled – they are doing no expensive operations in a disabled state.