loki-47-6F-64 / sunshine

Host for Moonlight Streaming Client
GNU General Public License v3.0
1.75k stars 155 forks source link

use kmsgrab+vaapi to improve performance #150

Open rhjdvsgsgks opened 2 years ago

rhjdvsgsgks commented 2 years ago

kmsgrab is a method of "zerocopy" screen capture, video stream will not copying between cpu and gpu so it can reduce latency. ffmpeg and a obs plugin has already implemented this. some discussion can be found at https://github.com/kokoko3k/ssh-rdp/issues/2 and https://obsproject.com/forum/threads/experimental-zero-copy-screen-capture-on-linux.101262/ it also working under wayland, https://github.com/loki-47-6F-64/sunshine/issues/44 can be resolved at same time.

loki-47-6F-64 commented 2 years ago

That's what I'm working in right now ;)

iMonZ commented 2 years ago

Thank you for your hard work! I’m so exited trying sunshine in full Wayland mode out.