Spazzing
From GMod Wiki
Go to: Cautions |
Spazzing (also called black hole effect) is the effect of props or ragdolls going haywire and flailing all over the place, usually causing extreme lag.
Causes
There are numerous causes for this phenomenon, the most common causes being:
- Forcing a prop/ragdoll or multiple props/ragdolls into a wall with the Physics Gun.
- Using Easy Weld on a ragdoll.
- Using the Slider or Hydraulic constraint (if the checkbox "Fixed" is checked).
- Using the Rope tool and setting the length of it to an insanely low amount. (e.g. -700)
- Using the Motor constraint and setting the torque to some extremely high amount.
- Using weld from many props to others at once.
Spazzing can be a huge problem when making big contraptions, so it is recommended to save often. (either using the in-game save tools, or Advanced Duplicator)
Solutions
Fortunately, there are ways to avoid spazzing.
- If you're using the Slider or Hydraulic constraint, place one of them with the checkbox "Fixed" checked, then uncheck the checkbox and place a little more of them on the same surface.
- Raise the
gmod_physiterations
convar. This will increase the accuracy of the physics simulation. Note that it will be a bit more expensive to calculate the physics simulations, so you will experience more lag. (the convar defaults to 4) - If you have a fully welded contraption, and it starts spazzing out, there's a silly, but working solution:
- Freeze one part of the contraption
- Spawn a bouncy ball entity from the Entities tab
- Use the physgun to smack the ball against the contraption a few times
- Unfreeze the contraption
- According to testing, the contraption should now be fully stable again.
Note: attempting to easy-weld things on to props that are spazzing is an extremely bad idea. This will just make the situation worse and could make the game lag.
Side notes
As many people know, it is proven to be fatally dangerous in Garry's Mod to simply jump toward the spazzing prop(s). Try to keep your distance if you're in a gamemode such as RP or GMStranded where death has consequences.