Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  2. Ever participated in one our Game Jams? Want pointers on your project? Our Evangelists will be available on Friday to give feedback. Come share your games with us!
    Dismiss Notice

Network error when download many files

Discussion in 'Addressables' started by m-mine, Jul 30, 2019.

  1. m-mine

    m-mine

    Joined:
    May 23, 2018
    Posts:
    19
    i made 5000 asset bundle and set it same label name
    when i call
    Addressables.DownloadDependenciesAsync("test");
    will happen erro like
    Unable to complete SSL connection
    Request timeout
    Cannot connect to destination host
     
  2. m-mine

    m-mine

    Joined:
    May 23, 2018
    Posts:
    19
    request called 5000 times at same time
    may be this will create 5000 thread.
     
  3. m-mine

    m-mine

    Joined:
    May 23, 2018
    Posts:
    19
    and editor be freezed
     

    Attached Files:

  4. danilonishimura

    danilonishimura

    Joined:
    Jul 13, 2010
    Posts:
    65
    As far as I know, you can't download that many files simultaneously. You can create a pool of download peers and download each bundle as soon as a peer is free.

    Edit: @unity_bill do you think some cases like this where loading by label means loading a *ton* of assets should be "gracefully" handled by your package, or should we deal with this?
     
    Last edited: Jul 30, 2019
  5. m-mine

    m-mine

    Joined:
    May 23, 2018
    Posts:
    19
    danilonishimura
    If managing the download peer of the ResourceManager I need to implement checking the file hash and asset version etc.
    This function has been implemented in the ResourceManager. So I think the ResourceManager should have a download pool feature. And we can set the pool size via scriptableobject
     
    danilonishimura likes this.
  6. unity_bill

    unity_bill

    Unity Technologies

    Joined:
    Apr 11, 2017
    Posts:
    998
    Yeah, it probably should. We'll look into it.
     
  7. m-mine

    m-mine

    Joined:
    May 23, 2018
    Posts:
    19
unityunity