View Issue Details

IDProjectCategoryLast Update
0024350AI War 2GUIJan 21, 2021 12:11 pm
ReporterLightjolly Assigned ToChris_McElligottPark  
Severityminor 
Status resolvedResolutionfixed 
Product Version2.715 Unload Queuing 
Fixed in VersionBeta 2.719 Unity 2019.4, And Performance 
Summary0024350: Icons, both selected and non-selected, cause big frame drops. Also just overall perfomance stuttering
DescriptionWhen icons are on, I get worse performance than when they are turned off. When the icons are selected, I get a massive hit to frame rates

Overall performance has a bit of a stutter

i7-7700, RTX 2070 Super, 16GB Ram, GOG version
TagsNo tags attached.

Relationships

related to 0024309 resolvedChris_McElligottPark Selecting your fleet reduces the FPS a lot 

Activities

Lightjolly

Jan 20, 2021 11:57 am

reporter  

Autosave at 3h 9m 0s.save (1,218,522 bytes)

Lightjolly

Jan 20, 2021 11:59 am

reporter  

with icons.png (2,604,756 bytes)
icons selected.png (2,655,186 bytes)
No icons.png (2,342,728 bytes)

Lightjolly

Jan 20, 2021 12:59 pm

reporter  

frames ai wars.txt (236 bytes)   
Main menu 220-260

Starting game Homeworld

No Icons: 212 fps
Icons: 195
Selected Icons: 170fps

Small skirmish
No Icons: 190
No icons but selectet units: 160
Icons: 170 (with some stutter to 159)
Icons Selected 130- 140

frames ai wars.txt (236 bytes)   

Lightjolly

Jan 20, 2021 1:17 pm

reporter   ~0060364

When I select the ships and go to the galaxy map, the frames still remain lower than when unselected

Chris_McElligottPark

Jan 21, 2021 12:10 pm

administrator   ~0060369

From the discussion on discord, sounds like we got this one majorly.

The ship selection thing being slow is another matter, but that's in the related ticket and is not related to icons. Thanks!

Chris_McElligottPark

Jan 21, 2021 12:11 pm

administrator   ~0060370

From the prior build:

* We are now using Graphics Jobs again in unity. There was a performance regression with them in 2019.1, which they fixed in 2019.3, so that is now a benefit again.
** This should help to make various aspects of rendering less CPU-bound, but it will depend a lot on the machine in question.

* Our gimbal sprites are now using the geometry pipeline rather than the transparent pipeline, which makes drawing them vastly more efficient in two ways.
** Firstly, it avoids depth sorting on the CPU, which is time-consuming and can be a bottleneck.
** Secondly, it allows for full use of GPU Instancing, so that there should be no more than a single draw call per combination of sprite dictionaries, rather than potentially having more draw calls because of non-matching dictionary groups being non-adjacent in the sorted draw list.
** This can cut the draw calls in a giant many-types-of-ships battle from being hundreds to being like 6 to 10.
** It looks like we made the change to use the transparent pipeline on July 15, 2020, after more than two years of it being in the geometry pipeline.
** This has a massive positive impact on both the galaxy map view and the planet view.

Issue History

Date Modified Username Field Change
Jan 20, 2021 11:57 am Lightjolly New Issue
Jan 20, 2021 11:57 am Lightjolly File Added: Autosave at 3h 9m 0s.savemet
Jan 20, 2021 11:57 am Lightjolly File Added: Autosave at 3h 9m 0s.save
Jan 20, 2021 11:58 am Lightjolly Description Updated
Jan 20, 2021 11:59 am Lightjolly File Added: with icons.png
Jan 20, 2021 11:59 am Lightjolly File Added: icons selected.png
Jan 20, 2021 11:59 am Lightjolly File Added: No icons.png
Jan 20, 2021 12:13 pm Lightjolly Relationship added related to 0024309
Jan 20, 2021 12:59 pm Lightjolly File Added: frames ai wars.txt
Jan 20, 2021 1:17 pm Lightjolly Note Added: 0060364
Jan 21, 2021 12:10 pm Chris_McElligottPark Assigned To => Chris_McElligottPark
Jan 21, 2021 12:10 pm Chris_McElligottPark Status new => resolved
Jan 21, 2021 12:10 pm Chris_McElligottPark Resolution open => fixed
Jan 21, 2021 12:10 pm Chris_McElligottPark Fixed in Version => Beta 2.719 Unity 2019.4, And Performance
Jan 21, 2021 12:10 pm Chris_McElligottPark Note Added: 0060369
Jan 21, 2021 12:11 pm Chris_McElligottPark Note Added: 0060370