1 decade ago by BFresh
Just wanted to give you guys a heads up on a weird issue I've been having. I've created an apk using CocoonJS that works great on some very new devices. A lot of devices just crash after the impactJS loading meter though. I have come to find that I had prerendering with level loads on, which helps a lot for mobile devices when browsing the web page. I disabled it and now my game is running great on even some older android phones once compiled. Not sure technically why yet, but for now my rule is that if it is meant for a mobile web page, I will turn pre-rendering on. If it is meant for an apk, I turn it off since WebGL takes care of speeding the game up well.
This is the code that disabling made CocoonJS compile work well:
This is the code that disabling made CocoonJS compile work well:
for( var i = 0; i < this.backgroundMaps.length; i++ ) { this.backgroundMaps[i].preRender = true; }