Garry's Mod

Garry's Mod

Extended Properties
This topic has been locked
Major Code Smell / Lag Cause
Hey Rubat, thank you for creating this mod.

I've identified a code smell that causes lag scaled with higher and higher player counts.

In rb655_ext_props.lua, there is a Tick hook called "rb655_prop_sync"; this hook runs ply:GetEyeTrace for every single player in player.GetAll, on every Tick.

I hope that this will be useful in resolving this code smell as I've found it has a significant impact.
Thank You!