Search Unity

Data Usage - It just doesn't add up.

Discussion in 'Scripting' started by QuantumRevenger, Feb 9, 2016.

  1. QuantumRevenger

    QuantumRevenger

    Joined:
    Mar 22, 2014
    Posts:
    25
    My app is using WWW to retrieve text from a server once every 5 - 10 seconds, the data returned should only be around 128 bytes. Within less than 10 minutes, my app is clocking 1 Megabyte of data usage.

    Does Unity for Android send data elsewhere like analytics / reports?
     
  2. QuantumRevenger

    QuantumRevenger

    Joined:
    Mar 22, 2014
    Posts:
    25
    Each page request is 828 Bytes (including overheads | 128 Bytes without) this doubled as two checks are performed. 1656 Bytes per cycle. 1 Cycle is executed every 7 seconds (average) which is about 8.5 times per minute. 8.5 * 10 = 85 requests over 10 minutes.

    85 * 1656 = 140760 Bytes / 1024 = 137.4 KB

    137.4 * 6 = 824.7 KB per hour.

    My application has consumed over 5 Megabytes in 45 Minutes.
     
  3. Kiwasi

    Kiwasi

    Joined:
    Dec 5, 2013
    Posts:
    16,860
    Unity does do analytics, but it's very light weight. Have you done the obvious and turned off the WWW request to see the difference?

    Otherwise there is software you can use to watch web traffic. Isolate the packets from your software, and figure out what is in them, and how often they send.
     
  4. RockoDyne

    RockoDyne

    Joined:
    Apr 10, 2014
    Posts:
    2,234
    Put it on wifi and have wireshark scan the network (on a computer, although there might be some kind of tcpdump like utility on android by now, maybe even wireshark).