ID:172673
 
I've finally recieved the hardware I required to access my coding again, and I've been drastically decreasing the life of my keyboard since it came in, so I haven't been keeping track of what I've been changing.

The problem is, the game I'm working on lags like a (insert random expletive here), and I'm not sure why. I thought it was one of my procs, but it's functioning on a spawn() statement, and I can't think of anything else that would overhaul the CPU so bad (I set a stat in my game to display the world's CPU, and its right around 170). Any suggestions on what the problem could be?

Sorry I can't be more specific, but I haven't the faintest idea what's causing it.
Try profiling the world.
In response to Jon88 (#1)
/proc/ResetSpamVars 153.392 295.824 299.441 5213042


I'd say that's the problem, eh?

[Edit: Five million calls? Whoa.]
In response to Enigmaster2002 (#2)
Eheh... as it turns out, it was the statement I thought that wasn't causing the problem. I had "spawn ResetSpamVars(600)" instead of "spawn(600) ResetSpamVars()"; I spawned it 600 times every tick.

*Puts on his dunce hat* Wow, this thing never seems to get dusty...