davro12345 Posted December 13, 2017 Share Posted December 13, 2017 've been making a bunch of games using PIXI.js (version 3.0.6). However, none of the games work on my Huawei device (android version 5.0.1). Either the screen is completely black, or the screen flickers black, or the screen flickers black for a bit and then goes completely black. After doing some searching online, I've found two possible solutions to what looks like the same problem (https://github.com/pixijs/pixi.js/issues/2721). One solution that has been proposed is to change the shader precision value to mediump. However the attribute PIXI.PRECISION. or PIXI.settings.PRECISION does not seem to be available in the version 3 of PIXI. The other solution proposed is to ad the following code before creating the renderer: PIXI.glCore.VertexArrayObject.FORCE_NATIVE = true; However, to do this, I need glCore, and after reading some of the documentation (https://github.com/pixijs/pixi-gl-core), it seems like this is built to work with PIXI version 4. Having said that, I don't even know if these solutions would actually fix the problem. Anyway, any help would be much appreciated! Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted December 13, 2017 Share Posted December 13, 2017 You can try update to 3.0.11, may be issue was solved back then. I have no idea what can be wrong there. @Mat Groves do you know anything about it? Quote Link to comment Share on other sites More sharing options...
davro12345 Posted December 13, 2017 Author Share Posted December 13, 2017 No, the problem still occurs with version 3.0.11, unfortunately. Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted December 13, 2017 Share Posted December 13, 2017 ok, try to put "antialias: false" or "antialias:true" in the renderer settings. If it doesnt help, try also "preserveDrawingBuffer: true" (its slow as hell, but sometimes works) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.