Unsynced Lua AI
Posted: 23 May 2022, 21:37
I think that there may be an advantage running a Lua AI on the unsynced side, so that in theory, only one person's CPU has to do calculations, and could maybe even leverage compute shaders.
This obviously comes at the cost of having to send commands over the network.
Im wondering what kind of API or approach we should use in this endevaour, as just regular unsynced Spring.GiveOrderToUnit is validated that it can only give orders to player-owned units.
Anyone have any examples of unsynced Lua AI's?
This obviously comes at the cost of having to send commands over the network.
Im wondering what kind of API or approach we should use in this endevaour, as just regular unsynced Spring.GiveOrderToUnit is validated that it can only give orders to player-owned units.
Anyone have any examples of unsynced Lua AI's?