m1k1o / neko

A self hosted virtual browser that runs in docker and uses WebRTC.
https://neko.m1k1o.net/
Apache License 2.0
5.96k stars 449 forks source link

[FR] Multiplayer gaming use-case? #226

Open Hukuma1 opened 1 year ago

Hukuma1 commented 1 year ago

Would love to see if it would be possible to cherry-pick some commits regarding multiple game pad usage from https://github.com/wanjohiryan/qwantify which is forked from your repo.

m1k1o commented 1 year ago

I see that project is in very early stage, so ith might be worth waiting some time. In that repository, they did not actually change neko codebase, just built on top of that. That would be a good candidate for neko-apps maybe by adding GPU support and Wine (.exe files) support.

Hukuma1 commented 1 year ago

Also just some further ideas, and apologies if this is not possible:

If I want to run Neko server on my NAS, but wish to utilize the GPU from my PC (which is much more capable, obviously), would some sort of relay situation be possible? I am trying to avoid doubling up and running Neko server twice basically. Curious if this is possible.

In the gaming scenario this would be a win because I get to use my PC specs to stream it to my Neko server on the NAS and push the video sharing to someone else who connects to my Neko server?

m1k1o commented 1 year ago

That idea sounds good. It could be theoretically available using x11 forwarding, but I guess that is limited to using whole GPU. And also its bound to linux.

Or if you would like to share your whole host, you could (again, only theoretically) setup neko to connect your existing X server of your host using TCP (so it can be on different computer) and having to share that. I have one setup like that, in VM without docker and GPU, and i am using it instead of VNC or RDP.

Hukuma1 commented 1 year ago

Could Windows be the PC gaming machine? I wouldn't mind sharing the whole host, as long as others would be able to play along I suppose. Thinking in terms of multiplayer gaming going via my own server instead of someone else's. Truly selfhosted.

m1k1o commented 1 year ago

Windows 11 has some decent linux subsystem that can utilize GPU, so maybe it would be possible to install Xorg server there that can use GPU and forward it to neko.