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
165
S
49
G
146
Posts: 8,034
Reputation: 96,058

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
165
S
49
G
146
Posts: 8,034
Reputation: 96,058

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: 500
Reputation: 8,842


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 5 guests