Garry's Mod

Garry's Mod

70 个评价
GLUAWATCH
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 工具
插件标签: 快乐
文件大小
发表于
3.421 KB
2024 年 7 月 16 日 上午 7:49
1 项改动说明 ( 查看 )

订阅以下载
GLUAWATCH

描述
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]