Many Instances or One Big Sprite

Get help using Construct 2

Post » Tue Nov 12, 2013 6:43 am

What is better for rendering:

A - 3 different tree sprites repeated so that the total number of instances is about 50

B - 1 Large sprite with all 50 trees inside the image

In other words, should I use an image editor to create one big sprite with all the trees that I want to incorporate, or should I just make lots of instances of the trees inside the Construct editor itself?
B
4
Posts: 14
Reputation: 230

Post » Tue Nov 12, 2013 10:38 am

Its always better to use many instances of an object, than to make a big map with the tree duplicated many times.
B
12
S
3
G
1
Posts: 120
Reputation: 1,829

Post » Tue Nov 12, 2013 10:44 am

@Pakost: Not sure about that; I had better performance when pasting 324 little tile sprites to one canvas and deleting them instead of using no canvas at all.
Visual Novel 'Engine' in 100 Events
if you ever have to choose between buying Construct 2 on scirra.com or on Steam, read this: Review
B
22
S
9
G
1
Posts: 787
Reputation: 3,786

Post » Tue Nov 12, 2013 11:07 am

I guess that all depends then... For 20x20 pixels sprites 300 times instanced, its better to use a 512x512 sprite i guess. But for bigger resolution you will need quite big map for all trees, and its a hell of a loss of pixels.
I might be wrong, but that's how I understand it.
B
12
S
3
G
1
Posts: 120
Reputation: 1,829

Post » Wed Nov 13, 2013 1:04 pm

Does it depend on the pixels because either way the system will have to render it?

If I create 50 instances of a sprite, there will be an empty space in between each one. If import them into a png file, there will be transparent pixels in between each one.

Maybe, empty space is better than transparent pixels???
B
4
Posts: 14
Reputation: 230

Post » Wed Nov 13, 2013 2:06 pm

Transparent pixels use graphic memory, so yes, empty space is better.
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775


Return to How do I....?

Who is online

Users browsing this forum: Clark Thy Lord, timoteomorelli and 1 guest