downlords-faf-client icon indicating copy to clipboard operation
downlords-faf-client copied to clipboard

High GPU usage when progress ring on the screen

Open Eternal-ll opened this issue 2 years ago • 6 comments

I have noticed it when progress ring appears on screen

Screenshot 2022-03-03 101824

Screenshot 2022-03-03 101841

image

Eternal-ll avatar Mar 03 '22 05:03 Eternal-ll

Is this still a gif? We had that problem before, that's why we replaced the "native" spinner with a gif.

Brutus5000 avatar Mar 03 '22 06:03 Brutus5000

https://bugs.openjdk.java.net/browse/JDK-8200239

Marc-Spector avatar Mar 03 '22 08:03 Marc-Spector

Interesting fact: If you run a clean project and show the progress ring, the GPU usage is only 6.3%

Marc-Spector avatar Mar 09 '22 17:03 Marc-Spector

Experimentally, it was found out that the more elements are used, the greater the load on the GPU

Marc-Spector avatar Mar 09 '22 17:03 Marc-Spector

This might also be caused/amplified by the workaround for https://github.com/FAForever/downlords-faf-client/issues/442. -Dprism.dirtyopts=false causes the whole UI to rerender instead of just the areas that changed.

micheljung avatar Mar 10 '22 21:03 micheljung

Already fixed in https://github.com/FAForever/downlords-faf-client/pull/2619

Marc-Spector avatar Jul 20 '22 22:07 Marc-Spector