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 Image
B
164
S
49
G
114
Posts: 7,675
Reputation: 79,549

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 Image
B
164
S
49
G
114
Posts: 7,675
Reputation: 79,549

Post » Tue Mar 03, 2015 2:06 pm

Using image lossless compressors can help a little bit.

pngquant.org
Image
B
74
S
15
G
4
Posts: 497
Reputation: 8,639


Return to Construct 2 General

Who is online

Users browsing this forum: Xeeko and 2 guests