Garry's Mod

Garry's Mod

66 ratings
GLUAWATCH
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Fun
File Size
Posted
3.421 KB
16 Jul, 2024 @ 7:49am
1 Change Note ( view )

Subscribe to download
GLUAWATCH

Description
GLUAWATCH
Detects laggy LUA code in Gmod, and prints out where it originated from in the console.

How To Use
1. Set "developer" to "1"
This will let you view the console in-game.

2. Type any of the following command in the console depending on where you want to look for lag:
"gluawatch_sv_hooks" - All current existing hooks will be watched. You will have to load into a new map to stop watching them.
"gluawatch_sv_entities" - Any entity spawned after this was toggled will have their methods/functions watched.
"gluawatch_cl_hooks" - Same as "gluawatch_sv_hooks", but on the client.
"gluawatch_cl_entities" - Same as "gluawatch_sv_entities", but on the client.

3. Adjust "gluawatch_threshold":
Lower value = more sensitive lag detection. Slow hooks and functions will be printed out in the console along with the execution time and the callstack.

Tags: lag, anti-lag, performance enhance, improve performance, lua, glua, detector, hook, entity

Join the discord server if you want to discuss my addons!
[discord.gg]