I am currently struggling with memory management inside a webgl application on the Internet, only on iOS.
I get the following error message:
The app 'UIKitApplication: com.apple.Preferences [0xa7c1]' was killed by jetsam.
I understand that Jetsam is the system process responsible for managing memory , but a crash occurs when the browser uses about 25% of the RAM device, which is not so high. I do not have another open application while working with my webGL content. I do not understand what Taun Chapman said:
Jetsam monitors memory usage and kills applications that are not good citizens. A good citizen of memory is an application that wants to return memory when requested and does not ask for more memory.
Well, in a short time, the application requires more memory (when unpacking 3D models using workers), I can not continue my application without it! And he crashed at these specific moments.
Also, I think I have some memory leaks in my application, according to Chrome DevTools . I'm currently trying to fix it. But the browser itself seems to have some leaks. Thus, fixing the shaft will simply delay the inevitable.
, , , jetsam? WebGL?
Three.js WebGL zip.js, 3D-.
, : - (iOS Safari Chrome, )?, CSS.