Software Archive
Read-only legacy content
Announcements
FPGA community forums and blogs have moved to the Altera Community. Existing Intel Community members can sign in with their current credentials.
17060 Discussions

WebGL Black Screen Phaser Crosswalk

icp_i_
Beginner
888 Views

I have designed a game with Phaser. I wrapped it into an APK using Intel XDK + Cordova + Crosswalk. It was running at 54 stable FPS. Now I've updated the Intel XDK software and I get a black screen. I have found that I get the black screen because I force the Phaser Render to use WebGL. I can solve my problem by switching to canvas however, the performance on canvas is horrible (about 2-3 FPS). My device has a PowerVR SGX 544MP GPU and a MediaTek MT6589 SoC Model Instruction set 32-bit ARMv7. I'm looking for some solutions, thanks!

0 Kudos
3 Replies
PaulF_IntelCorp
Employee
888 Views

Did you try different versions of Crosswalk?

0 Kudos
icp_i_
Beginner
888 Views

I tried many builds, they all failed the same way I explained above. However I remember that the right combo worked. I know for sure that cordova-crosswalk-plugin-webview@1.3.0 worked very well but I can't remember exactly what cordova android platform version number it was or what cordova cli version it was.

LE: I think that if I force WebGL to crosswalk, I might solve the issues. How can I do that?

LE2: I solved the issue. The project needed the xwalk-command-line file with the following text inside:

xwalk --ignore-gpu-blacklist

The file has to be added to YourProject/platforms/android/assets

This link was very useful:

https://crosswalk-project.org/jira/browse/XWALK-2358

0 Kudos
PaulF_IntelCorp
Employee
888 Views

Easiest way to do this is add it to your intelxdk.config.additions.xml file. See this example from the "hello-cordova" demo app > https://github.com/gomobile/sample-hello-cordova/blob/master/intelxdk.config.additions.xml#L25 <

0 Kudos
Reply