My opinion to appMobi - DirectCanvas

Chat about anything not covered in these forums, but keep it civil!

Post » Thu Dec 06, 2012 10:45 am

I made this thread it matters about my experience working HTML5 for mobile devices, i tried to integrate my game with appMobi using DirectCanvas.

Well, i must say it's very terrible, unresponsive for touch events and incredibly joke performance it's not recommended for production, i don't understand why it's designed for professional use.

Also there no sound after all.

It's just sad for me, besides i decided to use with CocoonJS and it satisfied me a lot, especially 1.2 update, the biggest annoying issue when we can't change it splash screen until we must contact to ludei, i don't know what are the requirements to change splash image to custom splash.

Thanks for reading.
B
95
S
25
G
20
Posts: 3,052
Reputation: 22,613

Post » Thu Dec 06, 2012 2:52 pm

You should probably contact appMobi to let them know your feedback, since they may be able to help and fix some of the issues you're having.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,468

Post » Thu Dec 06, 2012 9:54 pm

Hey Joannesalfa,

Sorry to hear about your experience with directCanvas thus far. We do support sound (polyphonic even), and touch events are translated right into the directCanvas layer, so there should be no delay. If you are getting jokingly bad performance, that is coming from not optimizing your game for mobile (If your game is lagging the whole device that may also be the reason for your slow touch inputs). I'm not as fluent with Construct 2 as I am other engines, but if you want to debug your DC game, Ken or I would be glad to walk through your code and see what may be going wrong.

If you don't mind me asking, what device and OS version were you testing on?
appMobi
B
12
S
3
G
4
Posts: 22
Reputation: 2,698

Post » Thu Dec 06, 2012 10:10 pm

Hey Joannesalfa,

Can you send me the capx? I would like to take a look and see if I could help out. If I don't have any answers I'll work with our DC devs to see if there is anything that can be done.
B
19
S
4
G
5
Posts: 116
Reputation: 4,369

Post » Thu Dec 06, 2012 10:14 pm

I think that if his game wasn't optimized for mobile like you said, he wouldn't have have found the satisfaction - performance wise - in CocoonJS like he did.

EDIT: Sorry if that came out mean, I am very impressed by how efficient the support is even from here. Rory2012-12-06 22:15:40
B
36
S
10
G
6
Posts: 948
Reputation: 11,101

Post » Fri Dec 07, 2012 4:38 am

[QUOTE=AppmobiTyler] Hey Joannesalfa,

Sorry to hear about your experience with directCanvas thus far. We do support sound (polyphonic even), and touch events are translated right into the directCanvas layer, so there should be no delay. If you are getting jokingly bad performance, that is coming from not optimizing your game for mobile (If your game is lagging the whole device that may also be the reason for your slow touch inputs). I'm not as fluent with Construct 2 as I am other engines, but if you want to debug your DC game, Ken or I would be glad to walk through your code and see what may be going wrong.

If you don't mind me asking, what device and OS version were you testing on?[/QUOTE]

Thanks for your cooperation, the most important thing is to make appMobi is useful, otherwise appMobi isn't especially for mobile games, just for common apps.
The direct canvas, you may check .capx i've sent to @tap you will notice the differences between phone browser and direct Canvas, the annoying issue when you touch screen, it delays the callback, VERY SLOW, also i don't get why directcanvas looks bad sampling image.
Phone browser is still superior than direct Canvas. If is impossible to update as total change, i wouldn't use appMobi again.


I've tested on iOS 6 and iPod Touch 4
B
95
S
25
G
20
Posts: 3,052
Reputation: 22,613

Post » Fri Dec 07, 2012 5:38 am

[QUOTE=tap] Hey Joannesalfa,

Can you send me the capx? I would like to take a look and see if I could help out. If I don't have any answers I'll work with our DC devs to see if there is anything that can be done.
[/QUOTE]

Pm sent

B
95
S
25
G
20
Posts: 3,052
Reputation: 22,613

Post » Mon Dec 10, 2012 4:49 pm

@joannesalfa
I believe I have a solution for your problem. All you have to do is remove some code that C2 auto generated from your index.html file.

Here's what you do:

Open up your index.html file and scroll down to about line 120. There you will see the following code:
[CODE]
// Note: currently disabled
window.setInterval(function () {
     AppMobi.canvas.execute('window["C2_Motion_DCSide"](' + c2alpha + ',' + c2beta + ',' + c2gamma + ',' + c2accgx + ',' + c2accgy + ',' + c2accgz + ',' + c2accx + ',' + c2accy + ',' + c2accz + ');');
}, 50);
[/CODE]

Remove that code block from your index file and restest.
That floods the DC webview bridge with ununnecessary calls and was causing the slowdown we saw.

When I removed that code the touch response and all around performance greatly improved.

I will take to Ashley about possibly only injecting that code into the index.html file when the user opted to use the accelerometer.

Let me know how that works for you.
B
19
S
4
G
5
Posts: 116
Reputation: 4,369

Post » Mon Dec 10, 2012 11:03 pm

[QUOTE=tap] @joannesalfa
I believe I have a solution for your problem. All you have to do is remove some code that C2 auto generated from your index.html file.

Here's what you do:

Open up your index.html file and scroll down to about line 120. There you will see the following code:
[CODE]
// Note: currently disabled
window.setInterval(function () {
     AppMobi.canvas.execute('window["C2_Motion_DCSide"](' + c2alpha + ',' + c2beta + ',' + c2gamma + ',' + c2accgx + ',' + c2accgy + ',' + c2accgz + ',' + c2accx + ',' + c2accy + ',' + c2accz + ');');
}, 50);
[/CODE]

Remove that code block from your index file and restest.
That floods the DC webview bridge with ununnecessary calls and was causing the slowdown we saw.

When I removed that code the touch response and all around performance greatly improved.

I will take to Ashley about possibly only injecting that code into the index.html file when the user opted to use the accelerometer.


Let me know how that works for you. [/QUOTE]

@tap

I edited index.html to remove this code, then i updated app on XDK and tested on my iPod touch, the result is, well...


Not 100% satisfied...

It looks like it's not really "greatly improved" it didn't make a difference.Joannesalfa2012-12-10 23:03:43
B
95
S
25
G
20
Posts: 3,052
Reputation: 22,613

Post » Mon Dec 10, 2012 11:29 pm

Anyways, i'm going to release it without directCanvas.

There an issue how it won't hide status bar when on start layout, how do i make it complete hide status bar without direct canvas?
B
95
S
25
G
20
Posts: 3,052
Reputation: 22,613

Next

Return to Open Topic

Who is online

Users browsing this forum: No registered users and 1 guest