What exactly would be the best way to test for script performance, preferably in a live server? I’ve tried the micro-profiler, but I can’t seem to figure out a lot from it or what scripts are doing what.
In one of my older games, the server seems to have lag spikes often enough to be of annoyance and I can’t seem to figure out what’s causing it.
Explanation of my issue:
There’s only one somewhat heavy process, but it only lasts a moment as it’s a search filter handled server-side (which I know isn’t smart. I was doing it to never display all data at once, but then I realized how irrelevant that is at a later date).
The day/night cycle is also handled server-side, which again should be done client-side, however I doubt that would be the issue anyway.
The only other server-side operations I can think of involve single short actions such as editing a decal’s texture property or rotating an object once per operation.
I think what makes this the most annoying is that the lag is incredibly inconsistent. As I’m playing now, there’s no lag whatsoever. But on other days, things will run slower and have random lag spikes.
But skipping to the point: Is there a way to track script performance during a live server in an understandable manner so I can track the culprit?