Revert a2edf52: SQOpsLimiter does a more precise job (#11754)

This commit is contained in:
Loïc Guilloux
2024-01-12 17:04:43 +01:00
committed by GitHub
parent 1101b04371
commit 28efa65e0c
4 changed files with 30 additions and 11 deletions

View File

@@ -2026,5 +2026,12 @@ function Regression::Start()
print(" IsEventWaiting: false");
this.Math();
/* Check Valuate() is actually limited, MUST BE THE LAST TEST. */
print("--Valuate() with excessive CPU usage--")
local list = AIList();
list.AddItem(0, 0);
local Infinite = function(id) { while(true); }
list.Valuate(Infinite);
}