Performance: Cache the result of MyWindTurbine.IsInAtmosphere

Viktor Ferenczi shared this bug 4 months ago
Reported – Awaiting fix

Game version: 1.200.032

Method: MyWindTurbine.IsInAtmosphere

This is a relatively expensive check. Cache its result for some time, like 15 seconds. Wind turbines cannot fly out of the atmosphere, they work only on static grids anyway.

This problem is worse on multiplayer servers with many wind turbines on planets. One such server has 287 wind turbines right now, causing ~1.5% Main thread CPU load.

Replies (1)

photo
1

Hello, Viktor!

Thank you for letting us know about this. I have reported this internally.

Kind Regards

Laura, QA Department

Leave a Comment
 
Attach a file