d3athrow/vgstation13 — pull request #2330 by clusterfack (2014-12-23 09:28:23+00:00)
Title: Remove area.power_change() from use

Calling area.power_change for all areas in world is the laggiest thing you can do. And it provides no benefit whatsoever as all machines themselves will check through machinery's process for a power update. Here is a lag comparison of how shit power_change is compared to letting process work its magic.

This is a profile of the power_failure() event without using power_change for all areas
![image](https://cloud.githubusercontent.com/assets/8516830/5536191/02e5e74e-8a53-11e4-9a0b-ea31d61d0911.png)

This is a profile if you force a power_change() update for all areas
![image](https://cloud.githubusercontent.com/assets/8516830/5536213/353f0e6e-8a53-11e4-834c-253c6c9db8f4.png)

It's plain to see that's a stupid idea, increasing lag time several times over. By the way removing it has quite literally no effect on the outcome, as process will depower every machine just like power_change without the lag. Also the power_failure() event is essentially playable now with this change, so perhaps it should be readded to the random events list.