Downloading speed inside hise,
-
@d-healey i tested this with my friend from another country and the same issue, downloading via was slow and via browser was normal so this is not CDN or infrastructure issue.
-
@parabuh Can you share a link to the file so I can test?
-
@parabuh it would be helpful to see how you handle the download in the callback
-
@d-healey i sent you link on chat
@ustk im using standard Server.downloadFile methodServer.downloadFile("/" + expansionFile, {}, downloadDir, function() { var message = ""; message += Engine.doubleToString( this.data.numDownloaded / 1024.0 / 1024.0, 1); message += "MB / " + Engine .doubleToString(this.data .numTotal / 1024.0 / 1024.0, 1) + "MB"; DOWNLOAD_STATUS.set("text", message); if(this.data.finished) { expansionFileDir = downloadDir; INTALL_EXPANSION_BUTTON.set("visible", true); } });
-
@parabuh said in Downloading speed inside hise,:
i sent you link on chat
Thanks, I'll give it a try now on Mac and see what results I get and if I see any issues.
-
@ustk you can see this issue here https://streamable.com/px908r
-
@parabuh Mmm... This might be related to the size of the file and Hise having trouble to cache it on mac.. But this is above of my expertise level
-
@parabuh Yeah, I just tested on Linux and no issue. I'll try on Mac now.
This is the snippet I'm using to test (you need to fill in the baseURL and url parts).
HiseSnippet 929.3ocsV01aaaCDlxIpXxaqXEn+.z7mjGLLrSbcRPvv5rc7lwpS8pSK12JXjNESDJRARpr4E3+y6ev1QI4XkDizVCL8ACduw6gO7tidlRFBZsTQbpewxTf37MtyWJLKFtfxDjIiHNO2MR9mBtjFcAnMjAKSoZMDQbb16Wr933sOI+6e9oATNUDBaTQHePxBg2vRXlMZm85eiw4ioQvErjJd260SBkhgRtLCwydtcHozvqoWAmSstUyk7qT8BhyO314U8A3nCiihnGdXT+98O43S5cRWZbmdzK61+jdGz6nCN9nXhyyNKhYjp4FpAz3lNPFsb9B7.UjfOvzrK4fUnKYNl4B0jgKX7nYqIGMg3r+rMT0dET0KcmxhX2oeCk8c4F72DQURyo1SAoteAPxoBj1u.RuvcdnhkZ1Xwhmu1chv.pXJd2TEJE9Rpwp4NThdHLsSnWCiUnvcQDzuSmV93OMOsd84f5FP0VClATM7928lfFMr5YBNS.9wYhPCSJ7khAYFiTz0tuJIOHTljJEXFZ4eCkmAMqeacOVrev2WJ54oMTkYTYsV.tqqvMdMttBLCWuEAMJ27FMsHoLECob9kX8RvCy81v2CxkELbYHk6mo39+neiFmtVQLJNlwg4K0FHwhiwRdDnBpnb8FoaliS6Ek0ZPC7B1z9uYoVNxqtWI6steJ2GLgs7ucUK+3V2AODPdHhx4GyBltcD0PaGyDL8BHxxUd3YSK4P6TEyRHiPhIOIqZdpW8UUtGNWZf2JJNh0WU2+glhi2psRtiiGzsY113pdp.CDYIWBpp21VGwB06W8+rOup+vhxfJNJESDLyaSgR47aknh0OtWgTVGgqd+jQHaZaeJ0g9kBJCyBGmQvM3.qhlIO2Qf9ZiLM22xhODxlbqOurUqnXivhrATV4Q9KhiqysX1VZW763BldpLAimpPUN0zzafIhYJ.KfsshjG2KiSQjQYbp49iVrCcKMfL985ms8rBMyrr5P4uf4Mcdx4MetP7EtyXlvEaGi01BFw6h+OvX4T5u08r3XHzrAf66N9O10Qxehz+NYlgItZJ0nX1ZfyyRliulEBX1EBfqskC0r0iExcrxVFXNHhxE9W7qzXWqrSowtqMRRngJ4GCK5yruC7U4ZPLIxemzycpU1uKIu2qJOmfOK8wvv6uUOJvC10.ObWCr2tF3q10.6uqAdztF3we5.s+qgeNyHSJZaHjoyNKeXkiyYBJVAlWsR9OrJPAuL
I know of another developer who's experienced slow download issues on Mac, so this is not unique.
-
Confirmed, I get the same issue on Mac. I also tested with curl and the download speed is good, so this is specific to JUCE/HISE. I'll see if I can find a solution
-
@d-healey thanks for your help <3
-
@parabuh if the file is smaller than 500 mb everything is ok
-
Pretty sure this PR fixes it - https://github.com/christophhart/HISE/pull/643
-
@parabuh on macOS you can use curl with BackgroundTask to do any downloading you need.
-
@aaronventure Do you have to link against curl in Projucer?
-
@d-healey no, just call curl directly using BackgroundTask, curl has been shipping with macos for 20 years now... In windows it's only been since 2019, but powershell has some native tooling for that, you can technically get away with curl now but on earlier earlier versions of Windows you either have to provide a curl install or use whatever the powershell alternative is.
-
@d-healey unfortunately it's not working :( Now after 500mb started slowing down.
-
@parabuh Did you build my fork or make the change manually?
-
@d-healey i just build from your fork
-
@parabuh Did you build the development branch?
-
@d-healey nope i cloned your forked hise and switched to macDownloadFix branch