Gateways+ trade routes = massive performance drop

  • 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.

Riftwalker

Field Marshal
96 Badges
Feb 26, 2016
3.575
33
  • Crusader Kings II: Jade Dragon
  • Europa Universalis IV: Res Publica
  • Semper Fi
  • Sword of the Stars
  • Sword of the Stars II
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Stellaris: Apocalypse
  • Cities: Skylines Deluxe Edition
  • Hearts of Iron IV: Expansion Pass
  • Crusader Kings II: Charlemagne
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris: Galaxy Edition
  • Knights of Honor
  • Stellaris - Path to Destruction bundle
  • Cities: Skylines - Natural Disasters
  • Magicka
  • Crusader Kings II
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Majesty 2 Collection
  • Leviathan: Warships
  • For the Motherland
  • Knights of Pen and Paper +1 Edition
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Europa Universalis IV: Wealth of Nations
  • Victoria 2
  • Stellaris: Digital Anniversary Edition
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Cadet
  • Teleglitch: Die More Edition
  • Stellaris: Galaxy Edition
  • Crusader Kings II: Conclave
  • Warlock: Master of the Arcane
  • Europa Universalis IV
  • Crusader Kings II: Horse Lords
  • Stellaris: Necroids
it does most certainly. Trade protection range from starbases functions the same as trade collection range

THAT could very well be the source of a HUGE amount of lag... since it will always go out a number of tiles, if you're going through gates, it will ALWAYS check appropriate tiles through the gates. wow, i've programmed a descent amount of pathfinding, and that sounds like it could easily chew into performance. wonder how often it updates its coverage...
 

krios41

General
64 Badges
May 14, 2016
2.492
723
  • Tyranny: Archon Edition
  • Stellaris: Synthetic Dawn
  • Tyranny - Tales from the Tiers
  • Tyranny - Bastards Wound
  • Europa Universalis IV
  • Tyranny: Gold Edition
  • Tyranny: Archon Edition
  • Stellaris: Necroids
  • Stellaris: Nemesis
  • Hearts of Iron IV: By Blood Alone
  • Hearts of Iron IV: No Step Back
  • Stellaris: Humanoids Species Pack
  • Stellaris: Megacorp
  • BATTLETECH: Flashpoint
  • Surviving Mars: First Colony Edition
  • Stellaris: Distant Stars
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Apocalypse
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Death or Dishonor
  • Age of Wonders: Planetfall
  • Age of Wonders: Planetfall Sign Up
  • Stellaris: Lithoids
  • Hearts of Iron IV: La Resistance
  • Stellaris: Federations
  • Crusader Kings III
  • Battle for Bosporus
  • War of the Roses
  • Europa Universalis IV: Common Sense
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV: Together for Victory
  • Stellaris: Digital Anniversary Edition
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Expansion Pass
  • Stellaris - Path to Destruction bundle
  • Stellaris: Leviathans Story Pack
  • Stellaris: Ancient Relics
  • Surviving Mars: Digital Deluxe Edition
  • Surviving Mars: First Colony Edition
  • Prison Architect
  • Prison Architect: Psych Ward
  • BATTLETECH
  • BATTLETECH: Season pass
  • BATTLETECH: Heavy Metal
THAT could very well be the source of a HUGE amount of lag... since it will always go out a number of tiles, if you're going through gates, it will ALWAYS check appropriate tiles through the gates. wow, i've programmed a descent amount of pathfinding, and that sounds like it could easily chew into performance. wonder how often it updates its coverage...
i'm sure the piracy calculation is done daily... i hope that doesn't require an update on each starbase everyday too. But the more i think about that, thhe more i'm convinced it does
 

Captain Conundrum

Sergeant
58 Badges
May 27, 2018
61
0
  • Crusader Kings II
  • Stellaris - Path to Destruction bundle
  • Crusader Kings II: Monks and Mystics
  • Stellaris: Megacorp
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Stellaris: Federations
  • Stellaris
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
  • Europa Universalis IV: Dharma
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Golden Century
  • Stellaris: Synthetic Dawn
  • Age of Wonders III
  • Europa Universalis IV: Cradle of Civilization
  • Crusader Kings II: Holy Fury
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Stellaris: Distant Stars
  • Magicka: Wizard Wars Founder Wizard
  • Stellaris: Lithoids
  • Europa Universalis IV: El Dorado
  • War of the Roses
  • Victoria 2
  • Teleglitch: Die More Edition
  • Stellaris: Ancient Relics
  • Europa Universalis IV: Common Sense
  • Stellaris: Necroids
  • Prison Architect
  • Europa Universalis IV
  • Ship Simulator Extremes
  • Sengoku
  • Magicka
  • Knights of Pen and Paper +1 Edition
  • Impire
  • Hearts of Iron III
  • Crusader Kings II: Sons of Abraham
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Res Publica
  • Crusader Kings II: Rajas of India
  • Europa Universalis IV: Pre-order
  • Crusader Kings II: Legacy of Rome
I don't see why trade even needs to extend through wormholes or gates. Realistically, can you imagine the traffic jam of civilian ships all lining up to take their turn going through? It seems like something that would generally be reserved for military or VIP travel.
 

krios41

General
64 Badges
May 14, 2016
2.492
723
  • Tyranny: Archon Edition
  • Stellaris: Synthetic Dawn
  • Tyranny - Tales from the Tiers
  • Tyranny - Bastards Wound
  • Europa Universalis IV
  • Tyranny: Gold Edition
  • Tyranny: Archon Edition
  • Stellaris: Necroids
  • Stellaris: Nemesis
  • Hearts of Iron IV: By Blood Alone
  • Hearts of Iron IV: No Step Back
  • Stellaris: Humanoids Species Pack
  • Stellaris: Megacorp
  • BATTLETECH: Flashpoint
  • Surviving Mars: First Colony Edition
  • Stellaris: Distant Stars
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Apocalypse
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Death or Dishonor
  • Age of Wonders: Planetfall
  • Age of Wonders: Planetfall Sign Up
  • Stellaris: Lithoids
  • Hearts of Iron IV: La Resistance
  • Stellaris: Federations
  • Crusader Kings III
  • Battle for Bosporus
  • War of the Roses
  • Europa Universalis IV: Common Sense
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV: Together for Victory
  • Stellaris: Digital Anniversary Edition
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Expansion Pass
  • Stellaris - Path to Destruction bundle
  • Stellaris: Leviathans Story Pack
  • Stellaris: Ancient Relics
  • Surviving Mars: Digital Deluxe Edition
  • Surviving Mars: First Colony Edition
  • Prison Architect
  • Prison Architect: Psych Ward
  • BATTLETECH
  • BATTLETECH: Season pass
  • BATTLETECH: Heavy Metal
I don't see why trade even needs to extend through wormholes or gates. Realistically, can you imagine the traffic jam of civilian ships all lining up to take their turn going through? It seems like something that would generally be reserved for military or VIP travel.
Same could be said for hyperlanes though "can you imagine all these ships lining up, waiting for their turn for a hyperjump so they don't collide mid-jump?"
its convenience. But im' not oposed if trade collection/protection projection didn't go trough wormholes/gateways as a temporary band-aid if that helps with the stutter
 

Aepdneds

Colonel
80 Badges
Apr 6, 2017
882
861
  • Rome: Vae Victis
  • Europa Universalis IV: Dharma
  • Stellaris: Nemesis
  • Europa Universalis III Complete
  • Surviving Mars
  • Crusader Kings II: Conclave
  • Stellaris: Ancient Relics
  • Stellaris: Necroids
  • Stellaris: Humanoids Species Pack
  • Victoria 2
  • Hearts of Iron IV: Together for Victory
  • Europa Universalis III Complete
  • Cities: Skylines
  • Stellaris: Megacorp
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Europa Universalis 4: Emperor
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Stellaris: Federations
  • Stellaris: Digital Anniversary Edition
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Holy Fury
  • Stellaris: Apocalypse
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Colonel
  • Europa Universalis IV: Cradle of Civilization
  • Crusader Kings III
  • Imperator: Rome Deluxe Edition
  • Europa Universalis IV: Mandate of Heaven
  • Hearts of Iron IV: Cadet
  • Stellaris: Leviathans Story Pack
  • Europa Universalis IV
  • Stellaris: Distant Stars
  • Europa Universalis IV: Rule Britannia
  • Hearts of Iron IV: Death or Dishonor
  • Imperator: Rome
  • Stellaris: Lithoids
  • Europa Universalis IV: Golden Century
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV: Res Publica
  • Rome Gold
  • Victoria: Revolutions
  • Magicka
  • Divine Wind
  • Europa Universalis III Complete
  • Europa Universalis III
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
I don't see why trade even needs to extend through wormholes or gates. Realistically, can you imagine the traffic jam of civilian ships all lining up to take their turn going through? It seems like something that would generally be reserved for military or VIP travel.

Like in the real world the panama and suez canals are reserved for military and vip ships only. Oh wait..
 

PuchForLife

Recruit
62 Badges
Dec 11, 2018
1
0
  • Stellaris: Digital Anniversary Edition
  • Hearts of Iron IV: La Resistance
  • Crusader Kings II: Conclave
  • Hearts of Iron IV: Death or Dishonor
  • Crusader Kings III
  • Stellaris: Necroids
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Horse Lords
  • Stellaris: Leviathans Story Pack
  • Cities: Skylines - Natural Disasters
  • Hearts of Iron IV: Together for Victory
  • Stellaris: Lithoids
  • Cities: Skylines - Mass Transit
  • Europa Universalis IV: Mandate of Heaven
  • BATTLETECH
  • Surviving Mars
  • Stellaris: Humanoids Species Pack
  • Stellaris: Ancient Relics
  • Hearts of Iron IV: No Step Back
  • Battle for Bosporus
  • Imperator: Rome Deluxe Edition
  • Stellaris: Federations
  • Stellaris: Distant Stars
  • Hearts of Iron IV: Expansion Pass
  • Crusader Kings III: Royal Edition
  • Stellaris: Apocalypse
  • Europa Universalis IV: Common Sense
  • Hearts of Iron IV: Expansion Pass
  • Victoria 2
  • Cities: Skylines - Green Cities
  • Stellaris: Nemesis
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Stellaris: Megacorp
  • Stellaris: Synthetic Dawn
  • Europa Universalis IV: Mare Nostrum
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Cossacks
  • Victoria 2: A House Divided
  • Victoria: Revolutions
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
I don't see why trade even needs to extend through wormholes or gates. Realistically, can you imagine the traffic jam of civilian ships all lining up to take their turn going through? It seems like something that would generally be reserved for military or VIP travel.

Wow your post really fired up my brain. I gues how bad the traffic jam would be depends on the exact way the gate system works. First of are the gates al connect or do they contact one another and then establish a connection from Origen to destination (think stargate). now if they are al connected does that mean they are all connected to a sub space as the slow zone in the expanse in whitch case the amount of traffic jams would be dependent on the size of the connecting space and the competency of space traffic control but fundamentally no different then the airspace near an airport. This does not Fit with the instantaneous travel of the game so I think it's unlikely. Other option is that all gates connect to a single point in space in witch case only one ship can use the network at a time witch would not seem very efficient and cause masive traffic jams at the gate. A third option is that the gates can form a connection on demand in witch case a convoy system and timetable could be used. imagine convoys waiting for the time slot where the gate conects to their desired destanation. If each window is 15 minutes one one way two way taking 30 minutes would still mean 48 possible destinations per day witch is roughly the same interval as modern day air traffic. And with priorety access for military fleet movements. Still interesting to think about. I would images the stellaris gates to work as option number 3.


Now as to the stutters I've also experienced them. Strangely however my laptop did not get warm so I opened task manager to find that my game used about 25% of my CPU while running and as the game freezes my CPU drops to 5% my GPU also stops giving clear spikes. I'm no programmer but it appears that as the game stops it starts to wait for a process that does not require a lot of power but does need a lot of steps. Looks like checking trade collection on al star bases through gates would fit perfectly in that category so many they should block trade collection and protection through gates and wormholes
 

Alblaka

Foresightful Flag-Choser
101 Badges
Apr 12, 2013
4.016
1.665
  • Crusader Kings II
  • Stellaris - Path to Destruction bundle
  • Stellaris: Synthetic Dawn
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Pre-order
  • Europa Universalis IV: Third Rome
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Sword of the Stars
  • Sengoku
  • Semper Fi
  • Victoria: Revolutions
  • Europa Universalis IV: Res Publica
  • Magicka
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • Europa Universalis IV: Call to arms event
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Cities in Motion 2
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • For the Motherland
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Crusader Kings II: Monks and Mystics
  • Hearts of Iron IV: Together for Victory
  • Stellaris: Digital Anniversary Edition
  • Tyranny: Archon Edition
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Cadet
  • Europa Universalis IV: Mandate of Heaven
  • Stellaris
  • Crusader Kings II: Conclave
  • Victoria 3 Sign Up
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Magicka 2
  • Crusader Kings II: Way of Life
  • Magicka: Wizard Wars Founder Wizard
  • Europa Universalis IV: El Dorado
  • Cities: Skylines
  • Victoria 2
I wanted to verify this by building a Gateway in my capital system.

The moment the Gateway Construction Site finished, the game slowed to a crawl.

I then tried to see whether I could boost performance by downgrading all starbases... which however did not increase the performance.

Which now has me severely confused, but I can agree that Gateways seem to be part of that issue.
 

annccew

Recruit
Dec 8, 2018
7
0
I tested some situations with gateway. At default condition, it takes 16s for 90days of game. But, when I constructed 5 gateways at starbases, it was 19s. Finally, with 3 more gateways, it was 43s for 90days! Indeed, i couldn't play a game at all. If it was a ironman game, it might be a horrible exp for me. Please fix this bug as fast as you can developers. Game without gateway is so annoying you know.
 

Midnight-Paradox

Private
17 Badges
Sep 8, 2016
15
1
  • Tyranny - Tales from the Tiers
  • Stellaris: Apocalypse
  • Stellaris: Federations
  • Stellaris: Lithoids
  • Stellaris: Ancient Relics
  • Stellaris: Megacorp
  • Shadowrun: Hong Kong
  • Shadowrun: Dragonfall
  • Shadowrun Returns
  • Stellaris: Distant Stars
  • Stellaris
  • Age of Wonders III
  • Tyranny - Bastards Wound
  • Stellaris: Synthetic Dawn
  • Stellaris - Path to Destruction bundle
  • Stellaris: Leviathans Story Pack
  • Tyranny: Archon Edition
I tested some situations with gateway. At default condition, it takes 16s for 90days of game. But, when I constructed 5 gateways at starbases, it was 19s. Finally, with 3 more gateways, it was 43s for 90days! Indeed, i couldn't play a game at all. If it was a ironman game, it might be a horrible exp for me. Please fix this bug as fast as you can developers. Game without gateway is so annoying you know.

I have now reached a point where it's not days per second anymore but seconds per day! This issue is the single most game breaking thing in the latest version for me. Maybe not using gateways or using them more sparsely would keep it manageable in future savegames, but my current game is abso-friggin-lutely unplayable now.

I also would like to reiterate my wish for the engine to use multiple cores. I'm using a Ryzen 7 and it hurts seeing that 15 of its 16 logical cores are twiddling their metaphorical thumbs while the one that's used can't handle the load and slows down the game to a crawl. I know an engine update won't sell as well as a new content DLC but it's sooooo badly needed. Make it Stellaris 2 if you have to, but give the good old Clausewitz engine a big revamp. And - yes I know - not every calculation can be parallelized that easily but specifically Stellaris strikes me as an application that would put itself forward to be distributed to different cores even at a higher level (not talking about assembler code level optimizations here). Given all the global policies each planet should be calculable independent of all the others, heck, even the pathing problems described here should be calculable for each empire individually (though I don't want to advocate the lazy brute force approach to solve the problem!).
 

Riftwalker

Field Marshal
96 Badges
Feb 26, 2016
3.575
33
  • Crusader Kings II: Jade Dragon
  • Europa Universalis IV: Res Publica
  • Semper Fi
  • Sword of the Stars
  • Sword of the Stars II
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Stellaris: Apocalypse
  • Cities: Skylines Deluxe Edition
  • Hearts of Iron IV: Expansion Pass
  • Crusader Kings II: Charlemagne
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris: Galaxy Edition
  • Knights of Honor
  • Stellaris - Path to Destruction bundle
  • Cities: Skylines - Natural Disasters
  • Magicka
  • Crusader Kings II
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Majesty 2 Collection
  • Leviathan: Warships
  • For the Motherland
  • Knights of Pen and Paper +1 Edition
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Europa Universalis IV: Wealth of Nations
  • Victoria 2
  • Stellaris: Digital Anniversary Edition
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Cadet
  • Teleglitch: Die More Edition
  • Stellaris: Galaxy Edition
  • Crusader Kings II: Conclave
  • Warlock: Master of the Arcane
  • Europa Universalis IV
  • Crusader Kings II: Horse Lords
  • Stellaris: Necroids
Wow your post really fired up my brain. I gues how bad the traffic jam would be depends on the exact way the gate system works. First of are the gates al connect or do they contact one another and then establish a connection from Origen to destination (think stargate). now if they are al connected does that mean they are all connected to a sub space as the slow zone in the expanse in whitch case the amount of traffic jams would be dependent on the size of the connecting space and the competency of space traffic con...

they could just connect through some sort of harmonics, and so the ship just tunes to it's destination gate as it goes in, then safety equipment prevents the placement of ships inside each other. The gates acting more as subspace routers.

also there's the chance that the gates have multiple entry and exit points and so they just make several gate jumps but this is removed due to convenience as the interchanges would occur in less than a days travel.
 

wormasc

Sergeant
69 Badges
May 11, 2016
81
47
  • Europa Universalis IV: Res Publica
  • Crusader Kings II: Reapers Due
  • Stellaris
  • Cities: Skylines - Snowfall
  • Stellaris: Leviathans Story Pack
  • Europa Universalis IV: Cossacks
  • Knights of Pen and Paper 2
  • Cities: Skylines - After Dark
  • Stellaris - Path to Destruction bundle
  • Stellaris: Synthetic Dawn
  • Sword of the Stars II
  • Sword of the Stars
  • Majesty 2 Collection
  • Magicka
  • Heir to the Throne
  • Europa Universalis III
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV: Call to arms event
  • Europa Universalis III: Chronicles
  • Divine Wind
  • Crusader Kings II
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • BATTLETECH
  • Stellaris: Necroids
  • Europa Universalis IV: Mandate of Heaven
  • Crusader Kings II: Monks and Mystics
  • Age of Wonders III
  • Age of Wonders: Shadow Magic
  • Stellaris: Digital Anniversary Edition
  • Tyranny: Archon Edition
  • Europa Universalis IV: Rights of Man
  • Hearts of Iron IV: Cadet
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Crusader Kings II: Conclave
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Magicka 2
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • Cities: Skylines
  • Warlock: Master of the Arcane
to me, it sounds like trade is making arbitrary distance calculations that should be saved and not redone. gateways are a problem with pathfinding because every gate has access to every other gate, which will make pathfinding start polling across the galaxy. if trade on it's own is producing lag, then gates will exasperate it. i wonder what their pathfinding coe looks like, is it A* or something more crude.

edit: does anyone know if starbase piracy protection extends through gates? this may also be a big performance eater

Gateways and wormholes will actually make A* not work as well because A* will often result in it missing the presence of a gateway that could cut a lot of nodes off the route and just going the slow way if the gateway is a little out of the way. You'd have to use something more like Dijkstra's Algorithm if you want to ensure it'll always be the fastest route.

That said, I doubt it's a case of what pathfinding algorithm their using, since none of the paths in stellaris are going to be very long or complicated, it's more likely to be a bug causing something to take far longer to execute then it should or is making calculations too often.
 

Less2

Banned
Jan 20, 2016
3.737
5.034
Gateways and wormholes will actually make A* not work as well because A* will often result in it missing the presence of a gateway that could cut a lot of nodes off the route and just going the slow way if the gateway is a little out of the way. You'd have to use something more like Dijkstra's Algorithm if you want to ensure it'll always be the fastest route.

That said, I doubt it's a case of what pathfinding algorithm their using, since none of the paths in stellaris are going to be very long or complicated, it's more likely to be a bug causing something to take far longer to execute then it should or is making calculations too often.

They are probably using Dijkstra's algorithm or something similar. A* requires a heuristic, usually the absolute distance between points, which is obviously not relevant at all to Stellaris travel. Pathfinding in Stellaris is already using gateways just fine at least in terms of finding the right path, maybe not computing time.
 

Alblaka

Foresightful Flag-Choser
101 Badges
Apr 12, 2013
4.016
1.665
  • Crusader Kings II
  • Stellaris - Path to Destruction bundle
  • Stellaris: Synthetic Dawn
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Pre-order
  • Europa Universalis IV: Third Rome
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Sword of the Stars
  • Sengoku
  • Semper Fi
  • Victoria: Revolutions
  • Europa Universalis IV: Res Publica
  • Magicka
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • Europa Universalis IV: Call to arms event
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Cities in Motion 2
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • For the Motherland
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Crusader Kings II: Monks and Mystics
  • Hearts of Iron IV: Together for Victory
  • Stellaris: Digital Anniversary Edition
  • Tyranny: Archon Edition
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Cadet
  • Europa Universalis IV: Mandate of Heaven
  • Stellaris
  • Crusader Kings II: Conclave
  • Victoria 3 Sign Up
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Magicka 2
  • Crusader Kings II: Way of Life
  • Magicka: Wizard Wars Founder Wizard
  • Europa Universalis IV: El Dorado
  • Cities: Skylines
  • Victoria 2
Adding another Insight to this: I'm now into 2400, with Wormholes/Gateways disabled (x0 setting). No AI empire has created any Gateways yet, thus the only gates are the L-Gates, plus the special event wormhole that leads to a single system.

My game is running extremely smooth and fast. Of course, slightly slower than 2200, but definitely faster than 2400 in 2.0.

Gateways/Wormholes ARE the cause of this.