Jump to content

Games in PIXI producing a black/flickering screen on Huawei device


davro12345
 Share

Recommended Posts

'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!

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...