• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

blallo

First Lieutenant
31 Badges
Aug 28, 2015
253
922
  • Europa Universalis IV
  • Stellaris: Galaxy Edition
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Victoria: Revolutions
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Golden Century
  • Europa Universalis IV: Dharma
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Cradle of Civilization
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Mandate of Heaven
  • Stellaris - Path to Destruction bundle
  • Stellaris: Leviathans Story Pack
  • Europa Universalis 4: Emperor
  • Stellaris: Digital Anniversary Edition
  • Europa Universalis IV: Rights of Man
  • Stellaris Sign-up
  • Stellaris: Galaxy Edition
  • Stellaris
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Common Sense
  • Magicka: Wizard Wars Founder Wizard
  • Europa Universalis IV: El Dorado
  • Victoria 2
  • Crusader Kings II
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
 
  • 3
Reactions: