giongto35 / cloud-morph

Decentralize, Self-host Cloud Gaming/Application
MIT License
1.06k stars 106 forks source link

No work #7

Closed sergystepanov closed 3 years ago

sergystepanov commented 4 years ago

It has been showing a black screen on DII since today, is it normal? I was able to run around a bit with a necromancer and then, after the page reload, it all went black. It was possible to play if multiple tabs were open, in which case the first one would stream the game.

giongto35 commented 4 years ago

Hi @sergystepanov , :D I was modifying some code last few hours. I just finish, can you try http://clouddiablo.com/ again? It should be able to load now.

The expected behavior in multitab is that all will share the same game. image

Currently, it's quite spiky for some reason I haven't got time to investigate. It happens in local as well.

sergystepanov commented 4 years ago

Cool! Seems to be working now.

изображение

sergystepanov commented 4 years ago

It will be interesting to see how you will optimize the mouse pointer tracking :P Kinda playable with Singaporean ping 300.

d21 d22

giongto35 commented 4 years ago

How can you show the ping like that :D. Good to see how it works with 300 ping. Seems playable. I think that lag = the delay of frame + the mouse click event. Currently, I only track mouse click but mouse movement should be tracked as well. It will help to run FPS (Counter Strike), RTS (AOE) game. Some ideas I have in mind are: Using UDP + optimize payload + Predict the future like what you read in Stadia article (mouse movement is mostly linear).

sergystepanov commented 4 years ago

Yeah, and it's good that they've started to add low-level API for in-browser pointer movements (coalesced, predicted) which would help with smoothening the movement for better user exp. Negative latency as a theory is rather straightforward, but in order to implement even the easiest RetroArch method (game snapshots inside some VM: Wine running inside Docker in Docker in a cloud container (::: ), this would require some pretty beefy computer, not to mention a prediction cloud cluster to render possible outcomes. Actually, it's a great research topic for a thesis. (:

giongto35 commented 3 years ago

oh :O, Thank you for the low-level API for in-browser pointer movements article. Really nice. Yes, I think I just try some easy ones first and let see how. Negative latency is too much :))