dmitry_sher Posted May 9, 2016 Share Posted May 9, 2016 Hello everybody! We are making a graphics- and sound-rich game with phaser.js. It's a game for children to learn English and other languages. We don't do anything 3d or magical: just showing some sprites, sliding photos, playing sounds, dragging sprites. It's almost ready, but we have two profound bugs. This is a post about bug #1. The game crashes on iOS. If it's run under the debugger the message is: 'Terminated due to Memory Error'. It happens only on ios builds. All works fine in Chrome and Android. The builds are made with cordova 6.1.1. Android build uses Crosswalk. iOS build uses default webView. The crashes are random. It just happens in the course of game. The memory usage tab in XCode shows some relative not high memory pressure: up to 400MB on first load and then anything in range 50-350 MB in the game process. We tried to find any leaks and did not found any, at least in Chrome. Looks like our application just uses too much memory? How much can we use and is there any way to decrease this memory pressure? There are tons of full-screen images we use, and we preload them all. And sounds, we also preload them all. Should we implement some mechanisms for manually load and unload images and sounds when they are needed? Actually, we are looking for some professional help to solve this memory problem on iOS. You can pm me or contact via skype - dmitry.sher or email: [email protected] Link to comment Share on other sites More sharing options...
VitaZheltyakov Posted May 9, 2016 Share Posted May 9, 2016 Use Crosswalk Link to comment Share on other sites More sharing options...
dmitry_sher Posted May 10, 2016 Author Share Posted May 10, 2016 9 hours ago, VitaZheltyakov said: Use Crosswalk We already use Crosswalk for Android. Do you mean we need use it also for iOS? Last commit for crosswalk-ios is at november, seems like a bit outdated thing. Link to comment Share on other sites More sharing options...
VitaZheltyakov Posted May 10, 2016 Share Posted May 10, 2016 Yes, you need use Crosswalk fo iOS Link to comment Share on other sites More sharing options...
dmitry_sher Posted May 12, 2016 Author Share Posted May 12, 2016 On 5/10/2016 at 4:09 PM, VitaZheltyakov said: Yes, you need use Crosswalk fo iOS ok, we solved our problem, but we took WkWebView instead. Link to comment Share on other sites More sharing options...
Recommended Posts