CPU limit



  • Can somebody explain me why does a script containing the single line
    console.log(Game.cpuLimit);
    output the following:

    [10:45:31 AM] 261
    [10:45:44 AM] 281 // ok, +20 (CPU limit is set to 20)
    [10:46:08 AM] 279 // strange, -2
    [10:46:15 AM] 296 // basically, ok, +17
    [10:46:27 AM] 313
    [10:46:31 AM] 328
    [10:46:39 AM] 289 // very strange, -39
    [10:46:44 AM] 308
    [10:46:56 AM] 325
    [10:47:01 AM] 325 // strange, 0
    [10:47:12 AM] 341
    [10:47:25 AM] 360
    [10:47:37 AM] 380
    [10:47:48 AM] 399
    [10:48:01 AM] 418
    [10:48:13 AM] 418 // 0 again



  • Well, at the moment, the servers are not really running consistently. -39 would mean you just used 59 CPU in that tick. That's 300% of your limit. I had my Limit set to 50, and, with an average of ~35, I still occasionally spiked to >200, which would be >400% of my limit. So it seems like a common pattern. See also the topic I posted in the Technical Issues section.