Android Api Level 21+ without Crosswalk

Discussion and feedback on Construct 2

Post » Sun Aug 13, 2017 7:48 am

Hello,

I am just trying to remove Crosswalk from my android game. I just removed crosswalk plugin from my cordova game project and set the api level 21. But the game runs 5-10fps on devices. With Crosswalk, it was 55-60fps.

Also on devices over Construct 2 Preview from network, chrome runs 55-60fps solid.

@ashley writes there is no need crosswalk for devices over api level 21. But i couldn't make it work.

Test Devices: Samsung S4 - 5.0.1 , Huawei G8 - 6.0.1
B
5
Posts: 12
Reputation: 251

Post » Sun Aug 13, 2017 9:18 pm

I compiled using Android Studio and got full fps (so using built in webview). I Used the android_manifest.xml from the apk package output (from construct 2). Are you in some some sort of dev mode (debugger) I wonder?
B
9
S
4
Posts: 22
Reputation: 721

Post » Mon Aug 14, 2017 11:23 am

Perhaps the GPU is blacklisted. IIRC by default Crosswalk ignores the GPU blacklist. Check chrome://gpu in the Chrome browser on the device to check.
Scirra Founder
B
398
S
236
G
88
Posts: 24,441
Reputation: 194,681

Post » Mon Aug 14, 2017 12:20 pm

Thanks @htmlgames and @ashley,

@ashley, if GPU is blacklisted how does it work on preview lan? It looks better from crosswalk builded native app. Runs perfect smooth.

Update:

Tried:
1) Exported the game with html5 from Construct 2.
2) Uploaded to my server.
3) Opened from chrome and samsung browser on device. It runs Perfect.

But with Cordova without Crosswalk, it runs 5 fps.
B
5
Posts: 12
Reputation: 251

Post » Mon Aug 14, 2017 3:26 pm

The Samsung Browser is not exactly the same as Chrome, which runs the native web view. Please check chrome://gpu like I suggested.
Scirra Founder
B
398
S
236
G
88
Posts: 24,441
Reputation: 194,681

Post » Tue Aug 15, 2017 6:47 am

I checked chrome://gpu on Samsung S4 5.0.1 @ashley. Yes, it says "GPU is blacklisted so the canvas hardware acceleration is disabled".

But i don't understand how can it runs perfect smooth on Preview Lan. (I test on the same device' Chrome).

Note:
But in same chrome://gpu, it says "WebGL: Hardware Accelerated" , "WebGL2:Hardware Accelerated" . So on Preview Lan it uses WebGL, on cordova build it uses Canvas, right?

If so, how can i force it to use WebGL instead of Canvas on Cordova?

Screenshots of chrome://gpu

Image
Image



Thanks
B
5
Posts: 12
Reputation: 251


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 15 guests