game performance with sprite with 10 frames

Discussion and feedback on Construct 2

Post » Tue Mar 03, 2015 2:15 am

hello,
I'm making a game for mobile phone and came across a problem in the game performance. I noticed that after I removed the animation of sprites, the problem stopped. Were 3 sprites, with 10 frames with 15 in speed loop. There was always 3 or 6 instances of these sprites. My question is: If 10 frames the game became gasping, how many frames I do the animation of sprites for the game run smoother?

Tnks =)
B
23
S
4
G
2
Posts: 96
Reputation: 2,442

Post » Tue Mar 03, 2015 2:25 am

It depends on the hardware, and how much memory your sprites use.
Image ImageImage
B
164
S
49
G
137
Posts: 7,945
Reputation: 91,356

Post » Tue Mar 03, 2015 2:38 am

I tested on a Moto G (second generation). The sprites have 90x60px. How I can know how much each sprite uses memory?
B
23
S
4
G
2
Posts: 96
Reputation: 2,442

Post » Tue Mar 03, 2015 3:20 am

Add up how many bites in folder, double that for the approximate uncompressed memory.
Image ImageImage
B
164
S
49
G
137
Posts: 7,945
Reputation: 91,356

Post » Tue Mar 03, 2015 2:06 pm

Using image lossless compressors can help a little bit.

pngquant.org
Image
B
77
S
16
G
4
Posts: 498
Reputation: 8,828


Return to Construct 2 General

Who is online

Users browsing this forum: Prominent and 13 guests