Garry's Mod

Garry's Mod

Addon hooks Lag Finder
95 条留言
4thsword 8 月 19 日 下午 8:23 
thank you man this addon is extremely helpful:steamthumbsup::steamhappy:
>KB> >KEKSQUAD 8 月 14 日 下午 3:23 
There should be a way to target specific hooks with this addon, preferably in the form of another argument
Cédric GÉRILLE [GiletJaune]  [作者] 6 月 6 日 上午 10:17 
Hey! Thanks for the love! :extralife:
Shimyo 6 月 3 日 下午 5:50 
hey so i love u for this
Cédric GÉRILLE [GiletJaune]  [作者] 6 月 3 日 上午 11:10 
I made it specially for you in the first place! 😉
Boing 5 月 14 日 下午 10:56 
this has been very handy, thank you.
Cédric GÉRILLE [GiletJaune]  [作者] 1 月 2 日 上午 11:52 
Greetings!
Your case is a little special. As mentioned in the messages, the errors come from the conflict finder, not the lag finder. Please retry the lag finder after uninstalling the conflict finder. I'm sorry for the inconvenience.
It seems that there is a special case where the conflict finder tries to send information, but for an odd reason, it seems that the information is too large, and that is surprising to me!
Well, good point here: the conflict finder needs to be fixed to handle this special case where there is too much information about the location of Lua files. I did not expect this!
The message about the not found hooks for event "1" does not give me any ideas BTW.
Mr.Toymaker 2024 年 12 月 31 日 上午 9:26 
It stopped working for me.. it pops me "Could find no hook with event name "1"!

[Addon hooks Conflict Finder] net.WriteData: Invalid length 67602!
1. unknown - lua/autorun/find_conflicts_hook.lua:72
2. pcall - [C]:-1
3. func - lua/autorun/find_laggy_hooks.lua:312
4. unknown - lua/includes/extensions/net.lua:37


[Addon hooks Conflict Finder] lua/autorun/find_conflicts_hook.lua:81: bad argument #1 to 'JSONToTable' (string expected, got no value)
1. JSONToTable - [C]:-1
2. net_ReceiveLuaFiles - lua/autorun/find_conflicts_hook.lua:81
3. func - lua/autorun/find_conflicts_hook.lua:147
4. unknown - lua/includes/extensions/net.lua:37" As i try to do a clientside test..
Cédric GÉRILLE [GiletJaune]  [作者] 2024 年 4 月 21 日 上午 1:39 
"lua/entities/ent_proxsensor/cl_init.lua" is missing. That's all I can tell.
Market Pluh 2024 年 4 月 20 日 上午 2:14 
[Stealth 2.1 (Improved Stealth Mod)] AddCSLuaFile: Couldn't find 'cl_init.lua'
1. unknown - lua/entities/ent_proxsensor/init.lua:1

where do I find the hook here?
and what do I type in the command?
Cédric GÉRILLE [GiletJaune]  [作者] 2024 年 3 月 30 日 上午 1:34 
Yes! :missing: Thank you!
Lexeychik 2024 年 3 月 29 日 上午 11:38 
most usefull addon EVER:steamthumbsup::missing::steamthumbsup:
Cédric GÉRILLE [GiletJaune]  [作者] 2024 年 3 月 28 日 下午 4:36 
God blesses me constantly, yet thanks for the appreciation! xD
I'm very glad to be helpful sometimes. Incompetent but somehow useful. 🤪
It's great that this add-on still works because I have not updated it in ages.
You actually are the good one: you make good use of Garry's Mod. 😁
morphine187 2024 年 3 月 28 日 下午 1:12 
Day to day im suffer from stutters, at least i have good fps like 60+ on big maps and 100+ on small. Yeah, i got like 200-300 addons, but people have more and their Gmod runs good. Stutters everything, mostly like from sound caching and do thing that causes small scripts.
And i found this. God bless you, bro. Using your addon, i found these piece of sh*t, that create stutters. Addon called "Catmull-rom Cinematic Cameras". Yeah, thats cool addon that create cinematic cams trails, but this addon is also so unoptimized and calls like 200%+ problems, like you addon says, instead of other 0.1-0.2%.. Now i can play like its minded, create some machinima and avoid to re-recording every moment, that game stuttered. God bless you and your family.. You such a cool and smart man, that helps to people find trash and delete this
Cédric GÉRILLE [GiletJaune]  [作者] 2023 年 12 月 7 日 下午 9:22 
Well, I don't think that it could help with the memory usage, but I am glad that you could find the add-on that was both laggy and a big memory consumer.
Thanks for the love! ❤
john jacob jingleheimer schmidt 2023 年 11 月 21 日 下午 1:15 
I LOVEE YOUU
john jacob jingleheimer schmidt 2023 年 11 月 21 日 下午 1:15 
OH MY GOD THANK YOU DUDE YOU HELPED ME FIND A USELESS ADDON THAT WAS LITERALLY USING 2 GIGS OF RAM
Cédric GÉRILLE [GiletJaune]  [作者] 2023 年 8 月 4 日 下午 1:24 
Was easy mate! Thanks for being my user.
GermanPlasma 2023 年 8 月 3 日 下午 1:19 
This tool is so damn useful, you are a KING.
Cédric GÉRILLE [GiletJaune]  [作者] 2023 年 6 月 22 日 上午 10:52 
Thank you Rib!
SuperDean, sadly, the LuaJIT implementation included in Garry's Mod does not seem to have a memory allocation tracing feature, in the same fashion as tracemalloc on Python. Such a feature would have to be enabled through a function or a command line argument, because it involves a performance penalty. I did not see anything like that in Garry's Mod.
Things that do not belong in the Lua world should be monitored too. If you are looking for memory usage issues on the game version of Garry's Mod, then the biggest memory eaters are models and textures, from what I guessed. Maybe fonts could be problematic, particles, sounds? Sadly, Garry's Mod does not make it easy to know what has been loaded.
The server version also seems to load certain things they should not, like material animations for just one random example.
Also a friendly reminder, the game version of Garry's Mod eats way less memory in its 32-bit edition.
SuperDean 2023 年 6 月 4 日 下午 7:39 
is there something like that tells you what addons uses up your ramm instead of cpu?
Rib 2023 年 6 月 2 日 上午 12:44 
Invaluable addon, thank you!
Cédric GÉRILLE [GiletJaune]  [作者] 2023 年 3 月 6 日 下午 1:48 
Well, if there was no Lua errors at startup then the add-on just was not mounted properly. No update was done in a long time.
Neo Furia 2023 年 3 月 6 日 上午 11:21 
still works as of now for me
TPUSA | Charles Kirk 2023 年 3 月 6 日 上午 9:04 
Tried to run this singleplayer an d multiplayer, says "unknown command" in the console.
Cédric GÉRILLE [GiletJaune]  [作者] 2023 年 1 月 19 日 下午 11:22 
BTW, don't stop the test when there are still players in, because TTT2 would overflow the channel again.
If I'm correct, the test ends when the player who initiated it leaves the server, which makes sense except in this case. It would be cool to reconnect with the test still running. Honestly this is something I should consider doing.
Cédric GÉRILLE [GiletJaune]  [作者] 2023 年 1 月 19 日 下午 11:16 
Hi, thank you!
Wait, you must have used find_laggy_hooks_sv from the client's console. Have you tried it on the server's console instead? (I don't think it can help when players are present.)
Here is a trick that should work: start the test from the server's console right after a map change, but make sure to do so before any player has finished loading. Of course you can do the same when nobody is connected.
Sadly, I think the only way to fix this from my add-on would be to slow down the startup by adding more and more things to the test instead of immediatly adding everything.
TTT2 might have less complexity in limiting the number of sent messages, but I guess it does not make sense to the creators, even though it's literally the responsible add-on for this issue.

Hehe, I proved again to be incompetent! 🤡
fskin 2023 年 1 月 19 日 下午 4:59 
This mod is a great debugging tool. Sadly I found that it doesn't seem to be compatible with the popular TTT2 mod. When it's used, the session crashes due to stack overflow.

"[TTT2] Trying to hotreload weapon_ttt_detective_cube .
[TTT2] Hotreloading weapon_ttt_detective_cube was successful.
[TTT2] Trying to hotreload m9k_striker12 .
[TTT2] Hotreloading m9k_striker12 was successful.
Lag test started, next output in 30 seconds!
Dropped fskin from server (Client 0 overflowed reliable channel.)"

It's due to TTT2's way of announcing the hotreload of every active addon that overflows the console. I'm not sure if it's possible to fix it...
Cédric GÉRILLE [GiletJaune]  [作者] 2023 年 1 月 14 日 下午 4:19 
Hehe, thank you!!! I created this tool because I could not stand not knowing where lags come from, and I was asked so much if I could inspect servers etc. I'm so glad it's been so useful to many other people! ❤
Thank you all for your heartwarming comments!
Pud 2023 年 1 月 14 日 上午 11:51 
best. debug mod. EVER. thankyouthankyouthankyou. why this type of function isn't in the base game in some form is beyond me. such a lifesaver, have the silly steam award as a thanks
Cédric GÉRILLE [GiletJaune]  [作者] 2023 年 1 月 1 日 上午 11:13 
Hey Deno,
Wow, this comment is so expressive and super sweet! Thank you very much, I'm so glad I could help you! You too are a gentleman for dropping such a great comment! 🤍
Deno4558 2022 年 12 月 30 日 下午 4:36 
I must say kind sir, your addon saved my buttocks. I almost commited punching a frickin hole into my pc, but as I saw your addon that did indeed save me from allot of trouble, I couldnt simply resist but had to write this flabbergasting comment on it. You gentleman are truly a hero because I almost executed all my addons that were innocent. I wish you a very fabulous day.
Cédric GÉRILLE [GiletJaune]  [作者] 2022 年 10 月 17 日 上午 12:02 
Ouch! 😭
Smith Furia 2022 年 10 月 16 日 下午 4:41 
people also like fancy text and addon names, with capitals on the name, for example: "Addon Lag Finder", it is simpler but more people will see
Neo Furia 2022 年 10 月 16 日 下午 4:20 
That's why it's good to remember to share decent addons like this one with your friends
Cédric GÉRILLE [GiletJaune]  [作者] 2022 年 10 月 16 日 下午 3:35 
Yeah but there is also the keyword-based relevence that plays into that! It is so disappointing. I must have done something wrong.
Smith Furia 2022 年 10 月 16 日 下午 12:36 
the steam workshop algorithm only gives attention to newer content, if your addon does not blow up in the first days it never will
Cédric GÉRILLE [GiletJaune]  [作者] 2022 年 10 月 16 日 下午 12:17 
I'm so sad that it's not easier to find. I don't know what to do to improve the way it shows up in search results. 😢
Smith Furia 2022 年 10 月 16 日 上午 9:37 
i was looking for a mod like this for more than a year, i finally found what i was looking for
Cédric GÉRILLE [GiletJaune]  [作者] 2022 年 10 月 16 日 上午 3:11 
Hehe, you are welcome! 🇫🇷+🇮🇹=:extralife:
Neo Furia 2022 年 10 月 14 日 下午 7:48 
Thank you my french friend, you saved me many headaches! Love from Italy
Cédric GÉRILLE [GiletJaune]  [作者] 2022 年 10 月 8 日 下午 12:43 
Just start the test (no required arguments) and read the periodic output. The results the most near the top are the most laggy hooks. If there is a lag, make sure it happens, so you can see it on the output corresponding to the period of its occurrence.
If you specify a single argument "0", you stop the test.
Fruity 2022 年 10 月 7 日 下午 4:13 
im kinda confused because idk how should i use it in gmod console
ADATS 2022 年 9 月 8 日 上午 2:00 
perfect:pcbs_gpu:
Cédric GÉRILLE [GiletJaune]  [作者] 2022 年 8 月 24 日 上午 11:37 
Thank you guys so much for the appreciations!
Max 2022 年 8 月 12 日 下午 4:46 
This is an amazing tool and should have 5 stars.

I run 600+ addons on a server with friends, so to easily find the culprits of the worse addons for performance makes everyone happy.

Good job man
inactive acc 2022 年 8 月 9 日 下午 7:28 
This addon is amazing, I was having 15fps with lag spikes leading to less than 10 fps on a decent rig in most maps. I ran the commands to find the culprit (In this case it was an old SWEP more than seven years old), and after removing it and reloading the map my FPS easily shot up to 60+. Thank you so so much!!!
tourniquet taster 2022 年 7 月 17 日 上午 6:54 
Thanks!
Cédric GÉRILLE [GiletJaune]  [作者] 2022 年 7 月 17 日 上午 3:53 
A frame lasts a given duration, for example 16.7 ms if you get 60 fps. It's basically the ratio of the hook duration (the sum of all the times it was called during a frame) over the frame duration. But if I remember correctly, I added some fancy calculation to compensate for whether a long time was spent during a single frame (noticeable lag), or if it is run like on every frame without spending a huge duration every time (overall slowdown), to give each case a meaningful impact score. And yeah, that explains why sometimes the impact is over 100% percent.
tourniquet taster 2022 年 6 月 11 日 下午 7:24 
what does Impact mean? it's displayed as a precent for some reason.