Name: Anonymous 2018-01-14 22:01
Because of the Spectre mitigation I presume the kittensgame suddenly eats 10-20% of a single core (vs ~1% IIRC), which becomes ~50% (fluctuating around within rather wide margins) with my scriptkitties, which eventually gets it into a death spiral of issuing wake up events faster than they are consumed, getting slower and slower as it gobbles up memory (which is weird, but I can reproduce it even just by clicking somewhere rapidly).
This is sad. Spectre is very sad news.
My current mitigation options for Spectre mitigation options in webkit:
* Remove most hunters so that they produce less than full kittenpower meter per tick (should've done this either way tbh), so my scriptkitty trades once per second as I intended, not once per tick. Apparently that's a large source of lag. [Implemented]
* Implement a late-game-trade feature that autodetects when we are getting more catpower per trade interval than max-catpower and just uses trade-all in that case. [Probably will do]
* Fix my trading and crafting engine to use resources per tick to determine when and how much to craft (instead of the dumb "resource > 0.95%", "craft 0.1 of max amount). This should allow for a much lower scriptkitty interval. [eeeeeeh]
* There was some piece of code in the kittensgame itself guarding against lags in particular, apparently it doesn't work as well as it should, find and fix. Also, the way it backs up doesn't really make sense to me. [...]
This is sad. Spectre is very sad news.
My current mitigation options for Spectre mitigation options in webkit:
* Remove most hunters so that they produce less than full kittenpower meter per tick (should've done this either way tbh), so my scriptkitty trades once per second as I intended, not once per tick. Apparently that's a large source of lag. [Implemented]
* Implement a late-game-trade feature that autodetects when we are getting more catpower per trade interval than max-catpower and just uses trade-all in that case. [Probably will do]
* Fix my trading and crafting engine to use resources per tick to determine when and how much to craft (instead of the dumb "resource > 0.95%", "craft 0.1 of max amount). This should allow for a much lower scriptkitty interval. [eeeeeeh]
* There was some piece of code in the kittensgame itself guarding against lags in particular, apparently it doesn't work as well as it should, find and fix. Also, the way it backs up doesn't really make sense to me. [...]