Source of Singularity lag; smoothwall.dm
Created by: StarSmasher44
Hey there,
I've been contacted by one of my players some time ago about Nar Sie being "Fucking awful" in lag on a scale from 1 to 10.. Jokes aside, I decided to spawn the large version of Nar Sie, and let it roam around, see what the profiler would say.
And the profiler doesn't like it, neither does the game. (Screenshot isn't too clear.. It's all formatted; Proc Name - Self CPU - Total CPU - Real Time - Calls
Up to as far as my acknowledgement does into resolving it, the function does 3 loops. Of which one could be removed by moving the hidden reinforced wall in as a child of the normal reinforced wall.
Other than this, since you guys know best how to fix these issues, I'm kind of looking at as helping both of us.
But just to make it clear, having Nar Sie on my own server (The largest version) doesn't seem to affect my performance as much, but I haven't yet seen how it runs on your code. Non the less, you should take a look!
- Laser.