Quantcast
Channel: Pixi.js Latest Topics
Viewing all articles
Browse latest Browse all 3979

App memory crash on IOS

$
0
0

I have an Ionic 3 + Angular 4 App, which uses PIXI for loading and displaying images in 1 screen.

I'm guessing Ionic and Angular use app a nice amount of memory by themselves (although they should be extremely optimized for mobile).

I'm using images that total 126KB as normal app assets, then I'm starting to upload to GPU content-related images.

After uploading to GPU around 2MB of content-related images, the app crashes. It's definitely because of that, it happens every time at the 15th image I'm trying to display or prepare (upload to GPU without displaying).

I'm testing on iPhone5s, which according to this list should crash at around 646MB memory usage:

https://stackoverflow.com/questions/5887248/ios-app-maximum-memory-budget/15200855

Naturally there are many things to take into consideration when trying to understand memory usage, the images could be the last straw the broke the camel's back, but it still doesn't make much sense to me, the app is very light - it doesn't use many resources and doesn't do any crazy calculations.

When I run the same app on Android I'm uploading to the GPU 28 content-related images and it works smoothly.

 

Did anybody ever experience a similar issue? Any idea why this is happening?


Viewing all articles
Browse latest Browse all 3979

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>