View Issue Details

IDProjectCategoryLast Update
0025794AI War 2SuggestionNov 26, 2021 1:08 pm
ReporterEluthena Assigned Tox4000Bughunter  
Status resolvedResolutionfixed 
Product VersionBeta 3.746 Phantom Ship Syndrome 
Fixed in VersionBeta 3.760 Chaotic Maps And Ark Empires 
Summary0025794: Changing a faction's colors in the custom start lobby shouldn't need to regenerate the entire map
DescriptionThis can be quite annoying when playing with extremely high planet counts and many factions (like if you want to color code faction teams), as a compete regen of a 300 planet map can take around 10-15 seconds for me (I have an 8th gen i7 processor, which is a bit dated at this point but still certainly not a weak CPU).

I suppose a solution is to only increase the planet count after customizing factions, but if this is an easy change to make it would be nice to not have to do something like that.
TagsNo tags attached.



Nov 8, 2021 7:52 pm

administrator   ~0063265

I had it not updating the entire map, but that wound up with many many problems and things that looked one way but were secretly another, and it was a huge PITA. I tried to solve it, could not, and decided to punt.

I think that the larger problem is that the interface is blocked while it's generating. I don't know why it's being so blocked as it is, because it really should not be. It's on my list to make it so that that's not such a wait as it is right now. When adding more factions in super giant games, that's fairly relevant.


Nov 26, 2021 1:08 pm

administrator   ~0063347


* There is now a CachedPlanetPoint and CachedPlanetConnection, which allow us to "regenerate" a galaxy for which the map structure has not changed in a very short amount of time by skipping the structure generation if we know it's just going to be a copy of the one we last cached this run.
** Often this can cut generation time down from several hundred ms to just two dozen ms. Or in the case of excessively large galaxies with many factions, it can cut it down from multiple seconds to just a few.
** Overall this creates a vast improvement in the responsiveness of adding factions and such in the lobby, but changing the map type or style or seed still has the same sort of wait as it did before.
** For a complex map with 300 planets, on my machine this takes 9.5 seconds to generate the structure, but after that is done, it only takes 280ms per faction added or removed. On an 80 planet map, it's 400ms and 20ms, respectively. Prior to now it would take the larger number every time we did anything like adding or removing factions, which was very confusing and annoying.

Issue History

Date Modified Username Field Change
Nov 8, 2021 6:44 pm Eluthena New Issue
Nov 8, 2021 7:52 pm x4000Bughunter Note Added: 0063265
Nov 26, 2021 1:08 pm x4000Bughunter Assigned To => x4000Bughunter
Nov 26, 2021 1:08 pm x4000Bughunter Status new => resolved
Nov 26, 2021 1:08 pm x4000Bughunter Resolution open => fixed
Nov 26, 2021 1:08 pm x4000Bughunter Fixed in Version => Beta 3.760 Chaotic Maps And Ark Empires
Nov 26, 2021 1:08 pm x4000Bughunter Note Added: 0063347