Being limited to 30 CPU instead of 40
-
I couldn't reproduce this issue. Could you please create an empty branch with an isolated test code reproducing it (either on the main server or the PTR)?
-
I can't reproduce this on PTR, only on prod using the following code:
module.exports.loop = function () {
console.log("["+Game.time + "] CPU bucket: " + Game.cpu.bucket + ' CPU limit: ' + Game.cpu.limit);
console.log('\tGoing to burn ['+Game.cpu.limit+ '] ms of cpu with nonsense...');
var i = 0 ;
while(true)
{
if(Game.getUsedCpu() > Game.cpu.limit)
{
break;
}
else
{
i++;
}
}
console.log('\tDone burning, used ['+Game.getUsedCpu()+ '] ms of cpu with nonsense...');
}Result:
PROD (problem):
http://i.imgur.com/PU2I9gC.png
PTR (OK):
http://i.imgur.com/LloncP0.png
Note, This is only on prod, and only after my GCL increased
-
It seems to affect only those who has gained a level recently. I noticed immediately after getting level 6 that the UI says 70 even if Game.cpu.limit states 80. My average CPU usage is slightly above 70 and my bucket is empty.
-
My cpu in the GUI also says 180 in stead of 190
-
Do you still need me to reproduce it or is Dissi's stuff enough?
-
Any progress on this incident?
More screenshots:
Code:
http://i.imgur.com/E75JgYl.png
Top right corner:
-
Just increased my GCL by one, and now I'm affected by this as well. Game.cpu.limit did increase by 10, but the UI still shows the old value. Since my CPU doesn't reach the limit atm I can't say which value is actually used as cap. I will report back should I notice a spike.
-
and now I had a CPU spike above my old limit, but below my new one. It did reduce my bucket. So I'm still limited by the old limit, not the new one. Game.cpu.limit is increasing, but actually used limit isn't.
Please fix this.
-
OK, found it, this bug has been introduced in the last update. Must be fixed now.
-
seems to be, thanks!
-
Can confirm, my bucket is growing again!
-
Fixed! Bucket is growing as well here.