Acceleration of the poor android game

Get help using Construct 2

Post » Fri Jul 06, 2012 10:53 am

Hello every one,

I've tried to export the game with phone gap, but it seems really slow.
I'm not sure if i can re do it with Eclips, because the enviroment is also difficult to built for me. But I think I will do it later

The game is acturlly big, like 80 sprites already and there will be more later, I'm not sure what kind of degree it can reach with Eclipes? Or it there still some methode more efficace for the acceleration .

I've tried to payer attention with every Tip which Ashley tolded. But We do need lots of sprites...
Anyway, on iPad, we still have a nice speed.

Thanks, et kind regards
B
11
S
2
Posts: 53
Reputation: 1,237

Post » Fri Jul 06, 2012 12:35 pm

Phonegap isn't really designed for games, but more for "normal" applications. Also apps created by phonegap isn't hardware accelerated.

Look at CocoonJS instead:
http://www.scirra.com/tutorials/303/how-to-export-to-cocoonjs

Or AppMobi with Direct Canvas:
http://www.scirra.com/tutorials/304/how-to-export-to-appmobi-with-directcanvas

Both these are hardware accelerated and will give you a much higher FPS than phonegap.
B
38
S
13
G
9
Posts: 151
Reputation: 8,437

Post » Fri Jul 06, 2012 2:45 pm

Thanks Mike, that is realy fun

When, I launch my game, it gives me a note like:

fps:>1000 is that mean I've made too much calcul in my game?
B
11
S
2
Posts: 53
Reputation: 1,237

Post » Fri Jul 06, 2012 4:15 pm

Still lots of errors...
I will try to cover it
Some times errors imformations seem too strange to me:
B
11
S
2
Posts: 53
Reputation: 1,237

Post » Fri Jul 06, 2012 5:31 pm

Do you use any external plugin in your project?
Facebook plugin is know to cause the FPS>1000 error.
B
38
S
8
G
3
Posts: 438
Reputation: 6,869

Post » Fri Jul 06, 2012 7:28 pm

@nothing1969, can you let us know what the errors are? We may be able to fix them.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,630

Post » Mon Jul 09, 2012 10:00 am

This is the ERROR that I've got:

JSUtilities Exception: TypeErrors: Result of expression 'this.nk[this.jv]'[undefined] is not an object. Cause: Tag: timer Function: function(){b.go();}
B
11
S
2
Posts: 53
Reputation: 1,237

Post » Mon Jul 09, 2012 10:20 am

and then I tried to delete all the images elements , and I have now always the same error, a litte different anyway:


JSUtilities Exception: TypeError: Result of expression 'this.Bg[0]'[undefined] is not an object. Cause: Tag: timer Function: function(){a.go();}
B
11
S
2
Posts: 53
Reputation: 1,237

Post » Mon Jul 09, 2012 10:23 am

Then I've deleted the plugin facebook:

JSUtilities Exception: TypeError: Result of expression 'this.Ag[0]'[undefined] is not an object. Cause: Tag: timer Function: function(){a.go();}
B
11
S
2
Posts: 53
Reputation: 1,237

Post » Mon Jul 09, 2012 10:49 am

Then I've deleted the plugin "facebook":

JSUtilities Exception: TypeError: Result of expression 'this.Ag[0]'[undefined] is not an object. Cause: Tag: timer Function: function(){a.go();}


Then I've deleted the plugin one by one "Array" "GROUP" "Timeline" "Web stokage","Audio" and all the sounds, "Keyboards":

...


Then I've deleted the plugin "Touch Mouse":

il works


Then I've tried to restore all the plugin besides "Facebook", and delete juste the "Touch Mouse":

It works


Then I've restored all the images and delete only the "Touch Mouse" :

Oh my god it works::::::


well
B
11
S
2
Posts: 53
Reputation: 1,237

Next

Return to How do I....?

Who is online

Users browsing this forum: Callan S, farfetchd83 and 16 guests