Hello all, this is my first time posting to a mailing list so please
pardon any faux pas I may commit.
I have been chasing down a rendering issue I'm having with a game I'm
developing using cordova crosswalk (android). I have pin pointed the
problem to be with my rendering engine (PIXI js) and some form of bug
when it's using canvas instead of webGL(if you're curious, the issue is
here https://github.com/GoodBoyDigital/pixi.js/issues/1038).
However this has lead me to discover an issue with cordova crosswalk and
the documentation.
So to be clear, this issue only occurs when I'm forced to use canvas
instead of webGL.
My test phone is a HTC Evo 4G LTE.
When I build with intelXDK (which uses cordova crosswalk) the issue
never occurs. We can then infer that under intelXDK the phone is allowed
to use webGL
When I build using a command line and cordova crosswalk (i've tested
both on the latest stable and the latest beta) the bug appears on the
test phone. So we can infer that using cordova crosswalk (i've also
tested using plain crosswalk without cordova) the phone is not allowed
to use webGL. I have confirmed this by changing my code to FORCE the
phone to ONLY use webGL and it throws an error saying webGL is not
available for that browser.
The only conclusion I can draw is this reference to blacklisted GPU's in
the crosswalk documentation (faq -
https://crosswalk-project.org/#documentation/about/faq/Canvas-and-WebGL-support)
intelXDK must be using the --ignore-gpu-blacklist flag during build.
So I then went about following the instructions to build my apk with the
same flag to confirm, but I reach a hiccup at this stage.
"If you are *using Crosswalk Cordova
<https://crosswalk-project.org/#documentation/cordova>*, the file should
be placed in the |platforms/android/assets/| directory of your project."
Yet if you follow the instructions on building your first cordova
crosswalk application (found here
https://crosswalk-project.org/#documentation/cordova/develop_an_application),
you never run the "cordova add platform android" command (and even if
you run it manually cordova complains that this is not a cordova
application). Therefore no "platforms" folder is present.
I have tried placing the text file in the other locations mentioned to
no avail.
So to conclude, I suspect intelXDK is using --ignore-gpu-blacklist and I
want to mimic this when I build using cordova crosswalk but the
instructions given in the documentation refer to a folder that does not
exist when following the startup guide.
What is the correct method to use the flag for cordova crosswalk?
Thanks in advance!
Rohan.
_______________________________________________
Crosswalk-help mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help