When creating build via web manager the asset upload is way faster compared to doing it via powershell (12Mb vs 2,5Mb stated by Task Manager) any way to speed this up?
When creating build via web manager the asset upload is way faster compared to doing it via powershell (12Mb vs 2,5Mb stated by Task Manager) any way to speed this up?
Could you please clarify how you monitor the asset upload time using task manager? As far as we know, the Network I/O speed displays in the task manager can’t be accurate to the certain http request. It is unsuitable for measuring the speed of uploading files. If you want to get the time every request spends, you can use the http capture tools to do the traffic capturing, then check their time info.
The assets upload essentially is using the PUT request to create the new resource. The operation that executed in the browser and PowerShell are the same. In our testing, the types of platform the request is sent from does not affect the request time. The upload speed fluctuates according to the current network speed.
I just noticed it takes way longer to upload through powershell, around 5-6 times longer. Accurate or not.
here's my experiment recorded:
Thanks for the clarification, we tested the simple uploading logic using PowerShell, the upload time would be close to the upload time when using Game Manager. The testing code could be something like this.
$uri ="[AssetUploadUrl]"
$headers = @{"x-ms-blob-type" ="BlockBlob"}
$body = Get-Content("D:\\ GameServer.zip")
Invoke-WebRequest -Uri $uri -Method Put -Headers $headers -Body $body
The long running time of "Add Asset" should be caused by other code logic. You can find the source code of MultiplayerPowershell here, and modify and recompile it in need to speed up the uploading time.
3 People are following this question.