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
163
S
48
G
99
Posts: 7,439
Reputation: 71,500

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
163
S
48
G
99
Posts: 7,439
Reputation: 71,500

Post » Tue Mar 03, 2015 2:06 pm

Using image lossless compressors can help a little bit.

pngquant.org
Image
B
73
S
15
G
3
Posts: 495
Reputation: 8,070


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 9 guests