What exactly does the rate do in scripts?

I noticed that in my game the pathfinding for npcs gets really bad sometimes (walking back and fourth) and every time it happens i have scripts with upwards of a million rate and I got no idea what this number means. The activity is almost always low though.

image

Im not sure exactly what the rate window is measuring, but I recommend to not use it as it commonly has problems like this.

If you’re concerned about a performance issue, you should look into how to use the MicroProfiler. Although more complex to use, it shows precisely what’s taking up frametime.