Search Unity

WWW calls slow in the unity web player

Discussion in 'Editor & General Support' started by evilgoldfish, Jun 28, 2012.

  1. evilgoldfish

    evilgoldfish

    Joined:
    Oct 20, 2010
    Posts:
    33
    Hello, we were wondering if anyone else has encountered this problem, or knows the cause or a solution!

    We use the unity WWW class to access php scripts to query a database. When using the unity editor this works as it should, and the game gets a response within moments. However from the web player build, the same calls take about five minutes to get a response. This happens regardless of browser, or machine.
     
  2. Dreamora

    Dreamora

    Joined:
    Apr 5, 2008
    Posts:
    26,601
    in the webplayer its up to the browser as unity does not use an own tcp implementaiton there. all goes through the browsers http pipeline so you get caching, php session support etc with it (things non existant outside the webplayer)
     
  3. evilgoldfish

    evilgoldfish

    Joined:
    Oct 20, 2010
    Posts:
    33
    Ok, thanks for the info! So the webplayer does handle things differently to other platforms, and I am not just going mad.
    I did forget to mention, the webplayer was working fine for months before, and the problem is only recent. But the code to do the WWW calls has not changed since then.
     
  4. Dreamora

    Dreamora

    Joined:
    Apr 5, 2008
    Posts:
    26,601
    There are then 2 options:

    1. something else runs in the browser or on the system that clutters your networking in general (could also be another machine in your local lan)

    2. Its a regression in a webplayer update, as the webplayer engine was updated during this timeframe