Search Unity

Unet server using Web Sockets has performance issue

Discussion in 'UNet' started by hMark, Dec 8, 2015.

  1. hMark

    hMark

    Joined:
    Oct 16, 2013
    Posts:
    16
    I am experiencing CPU usage issue when running Unet server (as Windows desktop build) with and without checked option "Use Web Sockets". It looks like the build is 20-30x slower with Web Sockets and profiler does not show nothing interesting. Do you experience same behaviour? Is it known issue?
     
  2. sstadelman

    sstadelman

    Joined:
    Dec 17, 2013
    Posts:
    12
    any action on this topic?
     
  3. vet-cat

    vet-cat

    Joined:
    May 29, 2013
    Posts:
    37
  4. aabramychev

    aabramychev

    Unity Technologies

    Joined:
    Jul 17, 2012
    Posts:
    574
    Hi guys. Looks like a bug, report it please. In description You can add (send directly to alexeya) in this qa will reduce investigation time and will redirect bug to me. And please describe reproducing steps and add please project to bug description.

    thanks
     
  5. forcepusher

    forcepusher

    Joined:
    Jun 25, 2012
    Posts:
    227
    Same. Also windows build won't connect to server while using websockets, and WebGL player crashes if you feed it URL instead of IP address when trying to connect.
    Too much stuff to report here, we're not getting paid for this. QA should do their job sometime.
     
    Last edited: May 29, 2016
  6. forcepusher

    forcepusher

    Joined:
    Jun 25, 2012
    Posts:
    227
    BTW This happens only on a single core virtual server instances. The thing is that it always utilize entire core.
     
  7. hMark

    hMark

    Joined:
    Oct 16, 2013
    Posts:
    16
  8. hMark

    hMark

    Joined:
    Oct 16, 2013
    Posts:
    16
    Btw, after 6 months the Unity QA answered on my bug request "Case 751853":

     
    forcepusher likes this.
  9. forcepusher

    forcepusher

    Joined:
    Jun 25, 2012
    Posts:
    227
    It does not have to eat entire core just to poll the updates.
    Well if our .Net stack is too old for this, then at least give it like 1-5 ms sleep time between polls. I added it artificially and it was running just fine.
     
    Last edited: May 2, 2018
  10. y_atanasoff

    y_atanasoff

    Joined:
    Jan 17, 2014
    Posts:
    4
    I'm having the same issue with 5.4 - you can even see it in the Editor performance when running a server with webSockets on.
    Are there any news on this issue?