Crosswalk Intel XDK experiences

Discussion and feedback on Construct 2

Post » Sat Aug 15, 2015 5:09 pm

Is there any way to fix the delay/lag when touching the screen? I think this is a problem with every export I've done. Is this a typical problem, and is there a way to optimize it better? It's an easy touch event, that has a bit of delay.
Image
B
14
S
4
Posts: 145
Reputation: 1,943

Post » Mon Aug 17, 2015 9:24 pm

@imaffett
Is it me or the CW14 builds add these permissions?

android.permission.READ_EXTERNAL_STORAGE
android.permission.WRITE_EXTERNAL_STORAGE

Is there a way to disable them? If I don't use them why are they included?

I didn't have this problem with CW12
B
86
S
25
G
11
Posts: 652
Reputation: 11,051

Post » Tue Aug 18, 2015 3:33 am

Bump.

"2. Single frames of certain animations appear as black squares."

This is still an issue apparently.

I've tried 10, 11, 12 and 14 of the embedded Crosswalk runtime.
Minimum Android API 19 and Target of 21.

I'm testing on a Samsung Glaxy Note 3 with Android 5.0.

I can't duplicate the issue at will, it appears to happen randomly.
Anyone else see this or figure out why it happens?
B
7
Posts: 3
Reputation: 295

Post » Tue Aug 18, 2015 4:21 pm

Seems that it could be a problem with certain sprites consuming too much VRAM on the device. I'm not convinced anymore that it's an XDK problem as it happens when using CocoonJS as well.
B
7
Posts: 3
Reputation: 295

Post » Tue Aug 18, 2015 5:44 pm

Iolva wrote:@imaffett
Is it me or the CW14 builds add these permissions?

android.permission.READ_EXTERNAL_STORAGE
android.permission.WRITE_EXTERNAL_STORAGE

Is there a way to disable them? If I don't use them why are they included?

I didn't have this problem with CW12


I was able to verify this is part of Crosswalk 14 and not 12. This comes from the Crosswalk team (not us). I'll try to see if they have a reason for it.
Intel Corporation
B
5
S
2
Posts: 133
Reputation: 871

Post » Tue Aug 18, 2015 9:43 pm

Well, thank you @imaffett
Some android users get crazy about permissions :)
B
86
S
25
G
11
Posts: 652
Reputation: 11,051

Post » Thu Aug 27, 2015 12:47 pm

JohnnyRuin wrote:Seems that it could be a problem with certain sprites consuming too much VRAM on the device. I'm not convinced anymore that it's an XDK problem as it happens when using CocoonJS as well.


I've found with my current WIP game that occasionally after playing for a while some graphics occasionally turn to black squares. I'm pretty sure this is a memory issue...things not getting cleaned up once their not in use most likely.

I'm not sure technically whether Crosswalk or Construct2 is the party to blame...in reality I've just had to be more sensible with memory usage, trimming all graphics where possible etc.

not a great answer but these limitations rear their head regardless of the platform, memory management is always tricky but worth the effort!
B
6
S
2
Posts: 28
Reputation: 508

Post » Fri Aug 28, 2015 10:44 pm

Hi everyone!

I seem to have some performance issues with my game. Before I didn't have any problem but now the game is dramatically slowed down. IT am building a platform game with levels and have done things to optimize the game before exporting from tutorials. It was working almost near perfect before in my phone Samsung Note 2 but now tha game seems to be slowing during game play almost like slow motion film but it depends on the sprites on the screen etc. I am suspicious about the Crosswalk is causing this because of its version. I use mainly Crosswalk 11 and set minimum Android version to 14 and set target Android versiob to 22. Now from this forum I see most people are using Crosswalk 14 and will try it. But stil lwanted to ask what is the best building options while using Crosswalk for a good performance. Thank you
B
19
S
6
Posts: 179
Reputation: 2,202

Post » Fri Sep 04, 2015 10:58 am

Iolva wrote:Well, thank you @imaffett
Some android users get crazy about permissions :)

Xwalk went rather full retared on this. Have a look:
http://stackoverflow.com/questions/2845 ... on-android

just look at those perms, its madness.
Code: Select all
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />


I would like to add that this is very devastating because if your game is not newest Fallout or GTA - no SANE mind will install or run an App that ask for such perms. A game that wants such permisions smells of spyware and will fail misrably on Google Play the moment the user base will notice. Which is awful because people will discard your game even before actualy playing it :( to be honest I WOULD never instal/run such application myself.
the guy in the link ive provided at the start gave a solution. You just need to kick out most of the permisions and leave only those intact:
Code: Select all
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.INTERNET" />


But a question, from a Construct 2 user - how the heck can i do that? Where is it in .APK after export?

EDIT:
I tried and the places where those permis are are in AndroidManifest.xml and classes.dex.
The problem is: you cannot do anything with them. Changing or erasing those permits values lead to the App lossining its functionality as the android on your mobile will tell you that it has some "Analyze Error" and wont instal the app.
Great. Just great. In 3 days i am publishing a new game on Google Play and this pops in... >_>
@imaffett

EDIT 2:
Okey so I think I've figured it out... But this is nightmare.
METHOD 1:
1. Export your Construct 2 via Intel XDK + Crosswalk as you did before
2. Unpack .apk into folder
3. Decompile AndroidManifest.xml
4. Change permisions
5. Recompile AndroidManifest.xml again. But now its not "signed" anymore, and won't instal on mobiles.
6. Get it "signed"
7. Pack the files back into .apk again and get the .apk "Zipsigned".
The last two step can be done with this tutorial:
https://www.scirra.com/tutorials/861/ho ... id-app-apk
Took me about an hour to finish.

METHOD 2:
1. Pinpoint Crosswalk HQ
2. Put it on fire :evil:
3. Refuse to put down the fire untill they'll come up with a solution or means for us to change the permisions setting by ourself.
@Ashley ? @Tom ? Maybe you guys have any idea where to start? I know its neither your fault or C2 related, but you have brains bigger than my, maybe you can come up with something.
B
28
S
8
G
7
Posts: 643
Reputation: 6,457

Post » Mon Sep 07, 2015 11:18 am

Okey, the thing is still rolling. If anybody feels like joining - hop in:
[Crosswalk-help] CrossWalk14+XDK+Construct2: Problems with permissions
https://lists.crosswalk-project.org/pip ... html#start

From always, if you make games using Construct 2 you would go like this
1. Export for mobiles (Cordova)
2. Set the permission as you see fit, on the 2nd picture
3. Then import the project into XDK
4. If you would like any extra Permissions - you would add them into the
"Add Permissions" spot.
5. Most of the time its needless because any plugin you use - creates a
corresponding permissions. So if you have a plugin that needs internet or
wifi - upon exporting it will get a corresponding Permission automatically.

So technically, we all start with a blank, which then the software fills
for us automatically.

Right now we have the other way around. We setup the permissions in C2,
then in XDK. But it doesn't matter as its being overwritten upon Crosswalk
export.
To further explain the gravity of the situation, imagine such occurrence:
You download a free Tetris clone. And when you try to install it, it asks
you for permission to:
-use your camera
-record all audio
-access your personal SD card and device settings.

Would you install such game? I would ask myself why the heck a freaking
tetris wants to watch me, listen to me, record what I am saying and access
my mobile hard drive. And then I would just cancel the installation, go
back to the provider of such App and rate it low, report it, and warn other
people to stay away from this Spyware.

We have the chance to setup everything we need, in Construct 2 and XDK. But
we have no control over Crosswalk settings, upon the export, at the end is
done by XDK, on their servers. So when native programmers can easily get
rid of troublesome permissions - we have no such option. And we have to
"Hack" our own games to change anything :(

I really don't think it should be that way. But I am pretty sure more
people are having troubles with this. Construct 2 is the biggest and most
used Game Maker engine for non-programmers. I think I can even safely
assume that out of 10 mobile games on the planet ( NOT created via native
programming) 8 was done via Construct 2.

We might get this thing sorted. Maybe. If more people would leave a shout we might get it done faster. That would show the problem is more global then local.

@Ashley . @Tom . @imaffett . @Iolva . @shinkan
B
28
S
8
G
7
Posts: 643
Reputation: 6,457

PreviousNext

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 8 guests