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
25
S
4
G
2
Posts: 99
Reputation: 2,498

Post » Tue Mar 03, 2015 2:25 am

It depends on the hardware, and how much memory your sprites use.
Image ImageImage
B
171
S
50
G
180
Posts: 8,396
Reputation: 113,986

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
25
S
4
G
2
Posts: 99
Reputation: 2,498

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
171
S
50
G
180
Posts: 8,396
Reputation: 113,986

Post » Tue Mar 03, 2015 2:06 pm

Using image lossless compressors can help a little bit.

pngquant.org
Image
B
82
S
16
G
4
Posts: 503
Reputation: 8,978


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 8 guests