greenlight icon indicating copy to clipboard operation
greenlight copied to clipboard

Fix AMD video HW Accel and lib path, #1079

Open Originalimoc opened this issue 1 year ago • 6 comments

Originalimoc avatar Dec 23 '23 15:12 Originalimoc

Can you please elaborate what this PR should fix? I see in the code that you are checking the gpu internals and im kind of wondering which option you are trying to activate? Maybe there is another way to achieve the same goal which is more electron friendly.

unknownskl avatar Dec 27 '23 23:12 unknownskl

The actual change is flatpak/io.github.unknownskl.greenlight.yml and electron to 25. First fix wrong path, second because 27 removed hardware decoder VDADecoder for H264. GPU info is in comment for possible future debugging.

Originalimoc avatar Dec 28 '23 08:12 Originalimoc

I still dont fully understand what problem you are experiencing and what this should fix. As for the downgrade to electron 25 i would prefer not to pin the version of the Framework. Electron 25 is EOL in about 5/6 days from now and that would expose additional security risks and compatibility issues in the future.

unknownskl avatar Dec 28 '23 17:12 unknownskl

Since this is a single purpose userspace app I don't think there're additional attack surface if future exploits are found in electron. Without this hw decoder patch it's unusable on Steam Deck without hammering the CPU thus battery.

Originalimoc avatar Dec 31 '23 13:12 Originalimoc

Keeping dependencies up to date is quite important in the long run. On my steam deck the app only uses between 6-8 watts while streaming and results in a suggested battery life of +- 5 hours (not real benchmarks though). The cpu usage sits between 20-40%. Do you encounter different numbers on your Steam deck?

Do you have numbers on how much this would improve cpu wise and in terms of energy usage?

unknownskl avatar Jan 08 '24 23:01 unknownskl

a

Around 7W. 1080P AVC decoder is not that hard on modern CPU. But bigger problem is SW decoder much higher latency on top of already awful Microsoft's streaming implementation on Xbox Series.. No idea how they messed up low latency encoder on its Zen 2 + RDNA 2 combo and no HEVC, no 4K. no HDR, only 1080P + AVC. On PC this GPU combo Sunshine + Moonlight can get full chain latency under 20ms(Click + Encode + over Network + Decode)...

Originalimoc avatar Jan 11 '24 15:01 Originalimoc