0.19.7.5 - Changes to Address Freezing on Windows
Author: corfe83,
published 3 hours ago,
I finally found a way to reproduce the freezing behavior that many users are seeing on windows. It turns out the key is to run it with steam overlay. I understand it's some interaction between ebiten engine, steam overlay, and the go garbage collector. If I disable the go garbage collector, it doesn't happen at all. I don't deeply understand the issue yet, but with that new understanding I've been able to apply some tweaks that dramatically reduce the frequency of the hangs, while I investigate how to get the root cause fixed.
[list]
[*] Steam Windows Version: Applied a workaround for the hangs/freezing that some users have been seeing. It doesn't solve the root cause yet, because the root cause is outside of Idle Armada, but it applies settings that dramatically reduce the rate of these issues, at the cost of running the GC much less often (which makes Idle Armada use more RAM). If you don't care about freezing and want to keep memory usage low, you can pass the -steamnormalgc parameter on startup.
[*] Fix Steam rich presence to work again.
[*] Undo change to prefer discrete GPU because it wasn't helping and may cause issues for some users.
[*] Remove v-sync option because it made the hangs significantly worse for some users, so it poses a reliability / stability issue.
[*] Fix bug that let you select dead units that were not visible on the battlefield.
[*] Update the dev stats screen significantly to show data about now Steam workaround.
[/list]