High WebGL ping.

Options
Hi

I use photon server (OnPremise, last version) on windows server (internet speed on server - 60 gbit/s and sever in europe just like me). When I connect with PC game client I have ping about 60, but when with WebGL (with browser or unity editor using wss) I have ping 120~350. What can I do with this? (such ping even if I've just connected to server and don't send/recieve some another data)

If I host server on my local machine: using WebGL I have ping 60~120.

If I use Photon Cloud my ping is about 350.

In game vertix.io my ping is about 80 (it uses WebSocket + node.js). Why? What can I do to get such ping?

Thank you.

Answers

  • jeanfabre
    Options
    Hi,

    It's odd, currently I am actually witnessing pings that way faster in webgl then in builds or editor and you seem to have the opposite.

    What region are you physically, and what region do you connect to in game?

    Can you try with other browsers? I find firefox a lot better than others, maybe this affect networking too.

    Bye,

    Jean
  • crutch12
    Options
    Hi, Jean
    jeanfabre said:

    What region are you physically, and what region do you connect to in game?

    crutch12 said:

    and sever in europe just like me

    I'm in europe and server in europe.

    Test on real build which situated on server and everyone can test this without movements like "agree ssl certificate" or smth else.

    Pings:
    Firefox: 160~250
    Google Chrome: 160~250
    Microsoft Edge: 160~250

    Unity's Editor (WebGL): 190~250

    Values change very dynamically.
    Different results in defferent times. Sometimes 150, sometimes 350...
    crutch12 said:

    If I host server on my local machine: using WebGL I have ping 60~120.

  • jeanfabre
    Options
    Hi,

    It looks like double values everytime so maybe the computation of a ping varies ( wild guess here)?

    maybe one way is to count the round trip, and another way is to count how long it takes to reach the IP address but not how long it took to reach back to the sender.

    Can you explain more about exactly where and how you read this pings?

    Bye,

    Jean
  • crutch12
    Options
    I just show ping in OnGUI:
    void OnGUI()
    {
       if (PhotonNetwork.connected)
       {
          GUI.Label(... PhotonNetwork.GetPing());
       }
    }

    That's it.
  • jeanfabre
    Options
    Hi,

    these are my results locally:


    left is editor, middle is webgl, right is Mac application.

    Another thing to mention is that latency and bandwidth are unrelated, it's a different thing. so it looks like on your side, you are not so lucky with your internet provider and have a bigger ping then in other regions.

    Where are you located physically?

    Bye,

    Jean