i was experiencing heavy lag in the late game and i suspected it was due to the large amount of ships.
so i tried to tag switch into every empire in the game and delete every fleet on the map. the lag got reduced by a nice amount.
i already suspected this was the case so i wrote a mod that should help everyone who is experiencing lag while we wait for a paradox patch.
abstract
every ship in the game is handled as a singolar entity, this mean that in the late game there can be 8k ships on the map, each with his own position, rotation and speed values. this means that each tick (up to 6 tick per second) the game has to update 8k * 9 values.
the idea behind this mod is to group up equal ships into groups so that they don't weight too much on the game.
implementation
when you unlock destroyers you unlock a unit of 2 corvettes as well. (it's shown as a single corvette, but every relevant stat is doubled). AI will always use this new unit.
when you unlock cruisers you unlock a unit of 4 corvette and a unit of 2 destoryes
when you get battleship you get a 8 corvette unit, a 4 destroyers unity and a 2 cruisers unit.
ideally, if normally the ai builds 8 corvette, 4 destroyers a 2 cruisers for each battleship this should reduce the amount of real units from 15 to 4
obviously old units will stick around until they are destroyed so i don't except to reduce to a 1/4 the number of ship, but i suspect i will be able to reduce to half them.
this mod should (as far as it's possible to know from modding) exactly like playing the normal game, with 2 exception, only the last tier of ships (8 corvettes, 4 destroyers, 2 cruisers) will benefit from discounts. on top of that the 2 corvette, 4 corvette, 2 destroyers have their price halved.
unfortunately there were no modifiers to fix this.
notice that this is not a definitive solution, it will just push the lag 20-50 years in to the future, when the total number of ships in the galaxy will be double. still maybe someone will find this useful.
http://steamcommunity.com/sharedfiles/filedetails/?id=685282655
so i tried to tag switch into every empire in the game and delete every fleet on the map. the lag got reduced by a nice amount.
i already suspected this was the case so i wrote a mod that should help everyone who is experiencing lag while we wait for a paradox patch.
abstract
every ship in the game is handled as a singolar entity, this mean that in the late game there can be 8k ships on the map, each with his own position, rotation and speed values. this means that each tick (up to 6 tick per second) the game has to update 8k * 9 values.
the idea behind this mod is to group up equal ships into groups so that they don't weight too much on the game.
implementation
when you unlock destroyers you unlock a unit of 2 corvettes as well. (it's shown as a single corvette, but every relevant stat is doubled). AI will always use this new unit.
when you unlock cruisers you unlock a unit of 4 corvette and a unit of 2 destoryes
when you get battleship you get a 8 corvette unit, a 4 destroyers unity and a 2 cruisers unit.
ideally, if normally the ai builds 8 corvette, 4 destroyers a 2 cruisers for each battleship this should reduce the amount of real units from 15 to 4
obviously old units will stick around until they are destroyed so i don't except to reduce to a 1/4 the number of ship, but i suspect i will be able to reduce to half them.
this mod should (as far as it's possible to know from modding) exactly like playing the normal game, with 2 exception, only the last tier of ships (8 corvettes, 4 destroyers, 2 cruisers) will benefit from discounts. on top of that the 2 corvette, 4 corvette, 2 destroyers have their price halved.
unfortunately there were no modifiers to fix this.
notice that this is not a definitive solution, it will just push the lag 20-50 years in to the future, when the total number of ships in the galaxy will be double. still maybe someone will find this useful.
http://steamcommunity.com/sharedfiles/filedetails/?id=685282655
- 3