Dynamic new households limiter
Infixo opened this issue · 0 comments
Infixo commented
The dynamic limiter could adjust the number of cims spawning by regulating the frequency of calls to the original system.
Add another config param e.g. NewCimsFullThrotleRatio.
Then the internal counter that works like this.
- Add LimitThreshold to the counter.
- Get current ratio and cap it to <min;full>
- Subtract from the counter.
- If it is <0 then a) call original job b) add FullThrotleRatio
So, with ratio at FullThrotle or more it will call at max frequency (each time)
With ratio close to MinThrotle it will call very rarely until it stops.
Then variable calls in between.
To avoid going to infinity max/min must be used.