Ajaxy / telegram-tt

Telegram Web A, GPL v3
https://web.telegram.org/a
GNU General Public License v3.0
2.39k stars 520 forks source link

[PERF] Loading images use immense GPU #254

Closed 4310V343k closed 11 months ago

4310V343k commented 1 year ago

Any time i see a loading (blurred with a progress spinner) image or video my GPU usage rises from 0% to 50% on a 3070.

Details
Github ![image](https://user-images.githubusercontent.com/56449763/236677566-b6d782eb-a71c-4353-9114-b04752385a56.png)
Telegram with no loading images ![image](https://user-images.githubusercontent.com/56449763/236677599-9f4109aa-b42b-4221-b9bd-c85fdc5a0ccd.png)
Telegram with a loading image ![image](https://user-images.githubusercontent.com/56449763/236677734-c559b883-b47b-440b-b31d-f9e007349569.png)

I don't know much about web, so if you can't reproduce the issue or want me to get some logs/performance metrics/tests let me know

4310V343k commented 1 year ago

Looks like the problem is not contained within loading images, but rather all loadings. Loading spinners, to be exact. After i deleted a class="Spinner_inner" the GPU usage dropped to 1-3%

4310V343k commented 1 year ago

For some reason any rotating animations across both chromium and firefox browsers cause massive GPU usage for me Example: https://codepen.io/y7o4ka/pen/vYVdmZa

baseplate-admin commented 11 months ago

What is your firefox version?

This problem doesn't exist with my 1050 ti with latest nightly ( 123 )

4310V343k commented 11 months ago

This issue is 7 months old and I'm pretty sure it was an edge case that I won't be able to reproduce on my new PC even if I wanted to