C2 on a mobile device

Discussion and feedback on Construct 2

Post » Fri Feb 03, 2012 3:55 am

It would better if you provided more details of your game ?
it is a top view 8way controllable game with solid walls(no physics or platform behaviors)

How big is it (MB) ?
in construct it is 98MB

Audio file sizes ?
maybe 9 tiny sfx and one 45sec music loop

Does your game have a lot of animated objects ?
no

What size sprites are you using for your animations ?
the image is 960x640 so the sprites range from 50x50 to 250x250

60 levels sounds alot! yes 60+
B
8
S
3
G
2
Posts: 107
Reputation: 2,219

Post » Fri Feb 03, 2012 7:51 am

My game is only 6mb around 400 events in total Not much animation hardly any physics, and 20 levels sO far with a arcade mode and a level designer
B
29
S
12
G
7
Posts: 740
Reputation: 7,839

Post » Fri Feb 03, 2012 7:53 am

Oh and my screen size is also 640x960

Can you list all the objects your using or printscreen them
B
29
S
12
G
7
Posts: 740
Reputation: 7,839

Post » Fri Feb 03, 2012 12:56 pm

Bert@ Construct game size 98 mb.

98 mb for a browser based game is way too much.

If your not using animated objects, and your sound files are tiny why is the project so big?

Are you re-using the same textures throughout the game or using a different (full size) background image for each level.

You must have a good spec PC if the games running at a solid 60 fps.


By the way, Chrome app store has a 10 mb limit for packaged apps.

chrisbrobs2012-02-03 12:58:47
B
19
S
6
G
7
Posts: 1,205
Reputation: 7,298

Post » Fri Feb 03, 2012 2:45 pm

98 mb?! That's way too much for a mobile game! You're going to have to seriously take a chainsaw to it and cut it down a huge amount for it to even work on mobile. This isn't a C2 limitation, mobiles have seriously limited hardware and you must design your game for mobile from the start, you can't assume a desktop game is going to work fine on a mobile! Your desktop computer is probably well over ten times faster than a phone and likely has 20-50 times as much free memory!

Remember .capx files are compressed, and to run on the phone it will have to decompress the entire project in to memory, which means it will use several hundred megabytes of memory. My phone often only has 50-60mb of memory free, so obviously your game is way too big to fit in memory, which is probably why some phones crash. I'm impressed the other phones can actually load it.

I would link to the image compression blog post, but that will only reduce the filesize - since everything is decompressed when loading, changing the image formats won't save any memory at all. You're going to have to remove images from your project entirely. Do you have any large background images or objects with lots of animation frames?

From performance tips in the manual:
[quote]When targeting mobile devices, you should aim to design significantly simpler games to ensure a good experience. Test on mobiles from the very start of your project to avoid any surprises and have lower expectations of framerate (30 FPS is a good target for mobile).[/quote]

Testing from the start on mobile also means if you get a sudden dip in performance you know what caused it.
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,544

Post » Fri Feb 03, 2012 5:18 pm

[QUOTE=Bert] just the 8way control and solid walls. [/QUOTE]

I have a paid app(phonegap) on iTunes.

In my experience, 8-way control can kill fps from 60 to 2 on iphone4.
You can't even use moving/rotating behaviors.

Keep your game small and static is a reasonable strategy
before they make better mobile devices.
Ashley's article about mobile performance is an excellent guide.
gonzdevour2012-02-03 17:19:22
B
106
S
27
G
8
Posts: 209
Reputation: 12,525

Post » Fri Feb 03, 2012 10:49 pm

@gonzdevour, what's the name of the game i'll download it
B
29
S
12
G
7
Posts: 740
Reputation: 7,839

Post » Sat Feb 04, 2012 10:23 am

I sent the link to private message.
B
106
S
27
G
8
Posts: 209
Reputation: 12,525

Post » Sat Feb 04, 2012 2:35 pm

There were a hand full of cinematic cel animations. I dropped these to 480x320 and then scaled hem back to 960x640(in C2). This got the project down from 98.1MB to 44.6MB. Will this help? Is scaling them up in C2 going to add the same amount of end RAM plus more cpu use to scale them?



By the way the game runs great on Chrome(with no down rezing of animations). It's test published only right now(I need to do another play test through the game before I make it public). The 10MB thing is wrong. My game zipped was 15.7MB and they took it no problem.
B
8
S
3
G
2
Posts: 107
Reputation: 2,219

Post » Sat Feb 04, 2012 4:15 pm

You should not use cinematic animations at all in HTML5 games. They are very wasteful in memory and usually larger to download than the rest of the game combined. You should use a real video and try the video plugin, but I'm not sure if that will work on mobile.
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,544

PreviousNext

Return to Construct 2 General

Who is online

Users browsing this forum: Aphrodite, blackant, Eisenhans, Prominent, shinichild and 10 guests