View Issue Details

IDProjectCategoryLast Update
0022890AI War 2Bug - GameplayMar 3, 2020 2:44 pm
ReporterZeusAlmighty Assigned ToChris_McElligottPark  
Status resolvedResolutionfixed 
Product Version2.006 Hotfix 
Fixed in Version2.007 Speed Boost 
Summary0022890: Bug report: Units are sluggish despite 100% performance
DescriptionUnits are stuttering as they move; performance seems otherwise at top speed and this is occurring very early in my campaign

Not playable currently
TagsNo tags attached.

Activities

ZeusAlmighty

Feb 29, 2020 5:09 pm

manager  

bug_sluggish.save (1,488,719 bytes)

Chris_McElligottPark

Mar 2, 2020 7:09 pm

administrator   ~0056275

I can't really fully duplicate this on 2.007, which i s the next version after where you reported this. I was seeing some sluggishness, but that was largely due to some sort of long-running process in the sim threads. What exactly was taking so long I'm not sure at the moment, because it didn't look like there was any specific thing super jumping out above all others (right-clicking the time display shows some stats that can be useful).

The Fleet_Step is taking suspiciously long, so I will look at that. But basically it's running at about 50% speed for a bit at the start, and then after a minute or two clears up and runs much more smoothly when I load this save.

It's possible that some of the excess debug logging that was happening in the 2.006 build is what was causing the slowness you were seeing.

Chris_McElligottPark

Mar 3, 2020 2:44 pm

administrator   ~0056282

Thanks!

* Added a new ArcenLinkedList<> class, which is a new specialist collection that is thread-safe, multiplayer-safe, and extremely high performance to iterate over, add to, and remove from.
** We're replacing all instances of ArcenMob<>, and the rollup uses of List<>, with this new class.
** This sees a massive improvement in speed in a lot of savegames, and the removal of micro-stutters relating to entities being removed from lists in general. This also sees a big improvement in how quickly you can get back out to the main menu.
** It's a lot of code changes, though, so it's always possible we made some sort of mistake in this and are causing a new bug somewhere. Fingers crossed that's not the case, but the places it would be a problem are usually central enough that it should be wildly obvious. So far we're not seeing that.
** Thanks to zeusalmighty for the savegame that helped us pinpoint the fact that ship/shot removal was being the biggest performance drain at the moment. His savegame went from a choppy 45-55% performance to smooth 100% performance.

Issue History

Date Modified Username Field Change
Feb 29, 2020 5:09 pm ZeusAlmighty New Issue
Feb 29, 2020 5:09 pm ZeusAlmighty File Added: bug_sluggish.save
Mar 2, 2020 7:09 pm Chris_McElligottPark Assigned To => Chris_McElligottPark
Mar 2, 2020 7:09 pm Chris_McElligottPark Status new => feedback
Mar 2, 2020 7:09 pm Chris_McElligottPark Note Added: 0056275
Mar 3, 2020 2:44 pm Chris_McElligottPark Status feedback => resolved
Mar 3, 2020 2:44 pm Chris_McElligottPark Resolution open => fixed
Mar 3, 2020 2:44 pm Chris_McElligottPark Fixed in Version => 2.007 Speed Boost
Mar 3, 2020 2:44 pm Chris_McElligottPark Note Added: 0056282