nunuStudio icon indicating copy to clipboard operation
nunuStudio copied to clipboard

Deploy the project with resource as individual files (Issues Loading on Mobile Device (iOS specifically))

Open helzapps opened this issue 4 years ago • 2 comments

Issue loading larger app.nsp scenes on mobile devices. Specifically iOS.

Description
  • Taking a larger scene, published for web > 40MB, current size 89MB and attempting either load via our website where we've published it, or embedding it in an App Wrapper using WKWebView
  • Nunu begins to load, but then after some time, our page reloads
  • Written to console is BKSProcessAssertion "ConnectionTerminationWatchdog" initialized with invalid pid

Notes: From what I can gather an iOS process is monitoring API loads and if their chunk size reaches a threshold (device dependent) then the process is killed. I tried examining the FileSystem.readFileArrayBuffer in the nunu.min.js file to see if there was some obvious means of decreasing the buffer array size or number of chunks that a .nsp file is dividing up into in order to maintain loading chunks below the iOS threshold. Unfortunately, that's probably a bad approach and I should maybe review the actual source... anyway wouldn't know where to start or if this would even technically solve the problem. Any ideas would be happy to share more info if needed.

Version
  • <0.97.14> <202006121739>
Platform
  • Web Version [X]
  • Windows []
  • Linux []

helzapps avatar Jul 10 '20 02:07 helzapps

Closing issue as I think it's more an issue of device constraint and number of polygons we are loading in the scene. We have conditionally loaded a "lighter" version for mobile devices that strips a lot of unnecessary items from the scene that are more decorative.

helzapps avatar Jul 25 '20 15:07 helzapps

Hello

I believe i should take a look at this issue and i have already planned a possible solution.

The nsp container includes all the resources in the project i been planning for some time to allow the user to select between the nsp file or a project folder with all resources in individual files.

This would allow to only load the required resources in web project and should be a solution for this problem.

Thanks a lot for reporting this issue.

tentone avatar Jul 26 '20 16:07 tentone