Performance tip for game with lots of sprites?

Get help using Construct 2

Post » Tue May 20, 2014 5:23 pm

what are some performance tips for a game that involves having lots of moving sprites on the screen at a time?
B
5
Posts: 26
Reputation: 283

Post » Tue May 20, 2014 6:10 pm

What I know would fill a Book , what I don't know would fill a Library
B
37
S
12
G
29
Posts: 331
Reputation: 16,499

Post » Wed May 21, 2014 12:45 am

Message: notalkingplz is not yet permitted to post plain text URLS (300 rep required). 1 URLS removed. Why?
granpa wrote:https://www.scirra.com/manual/34/best-practices


i've already read both of those, i was wondering if there are any tips for games that specifcially have a lot of moving sprites that are spawned
B
5
Posts: 26
Reputation: 283

Post » Wed May 21, 2014 1:08 am

How many sprites?
Is it for pc or mobile?
B
60
S
10
G
10
Posts: 1,013
Reputation: 9,155

Post » Wed May 21, 2014 4:39 am

A0Nasser wrote:How many sprites?
Is it for pc or mobile?


the number of sprites depends on how well the player plays. i've seen over 25 moving sprites with collision checks at one time and i don't know if that's a lot but i've noticed frame rate drops.

mostly for pc/facebook but potentially for mobile as well
B
5
Posts: 26
Reputation: 283

Post » Wed May 21, 2014 7:02 am

There are two things that will greatly affect your framerate there. The graphics of the sprites, and the collision checks. If your images are large in pixel size, has plenty of transparent areas, and any effects, it will slow down your framerate. Having a few of them is ok, having 25 of them you will probably notice some lag. Try to keep your collision checks down to the minimum that you can. It too has a big effect on your framerate if there is a huge amount of them.
B
46
S
23
G
31
Posts: 693
Reputation: 20,637

Post » Wed May 21, 2014 8:48 am

What i know is : if the 25 sprites with animation frames this will drop fps, if the sprites without animation frames like : balls or bullets this is ok.
you need to know that alot of animation frames will slow your game.

And about the collision check read this post :
viewtopic.php?f=146&t=100250&p=761284#p761284
B
60
S
10
G
10
Posts: 1,013
Reputation: 9,155


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 36 guests