royibernthal Posted February 3, 2017 Share Posted February 3, 2017 I'l like to pause/resume loading in AssetsManager. Is there a way to do that? I don't see anything about it in the docs. My intention is to pause the loading on focus lost and resume loading on focus restored, I've seen this done in many HTML5 games that are served to a large amount of users. It should help optimize file requests to the server. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted February 3, 2017 Share Posted February 3, 2017 Hello, unfortunately no as we are relying on xhr under the hood Quote Link to comment Share on other sites More sharing options...
royibernthal Posted February 3, 2017 Author Share Posted February 3, 2017 Hey, are you requesting all files async at the moment the load begins or sync one after the other? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted February 3, 2017 Share Posted February 3, 2017 Here is the code: https://github.com/BabylonJS/Babylon.js/blob/master/src/Tools/babylon.assetsManager.ts#L318 So basically all tasks are run simultaneously to leverage all that we can get from pseudo-async that we can get from xhr royibernthal 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.