giongto35 / cloud-morph

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

Display the real-time latency #67

Closed tianrenz2 closed 3 years ago

tianrenz2 commented 3 years ago

I wonder if the latency from the web client to the server could be displayed during the play, since it might be a useful indication for users who are suffering a big lag and wondering why.

giongto35 commented 3 years ago

Hi @tianrenz2, where do you want to display the latency. In the discovery on the left, you can see the ping, do you want to show on top of the screen or we can just put it aside the screen. This simple latency check is by sending a HTTP request to server and check response time. https://github.com/giongto35/cloud-morph/blob/master/web/js/controller.js#L137

tianrenz2 commented 3 years ago

@giongto35 thanks for answering 👍 , I just noticed that.