Optimizing: Sprite or Tiled Background

Get help using Construct 2

Post » Thu Jan 16, 2014 4:58 am

The answer is easy: Tiled Background is better for the optimization if you just want to show static graphic.

But I have a problem with blurry graphic. I searched forum and came to conclusion, it has to be power of 2, so I guess it mean that if the graphic is 392px wide it has to be 392px high.

Now I wonder. I have graphic that is 392x75. What would be better optimization-wise: make that 392x392 (having alpha to hide rest) in tiled background OR make it a sprite and turn off collisions and whatnot, keeping the file size small?

In my case it is the sprites that are sharp and the tiled background that are blurry.

Thank you!
B
58
S
18
G
13
Posts: 447
Reputation: 10,735

Post » Thu Jan 16, 2014 5:10 am

Have to edit: it not only needs to be square it needs to be incremented in 32-64-128...

Edit: I misunderstood again, it can be non-square apparently. Whee.helena2014-01-16 05:12:42
B
58
S
18
G
13
Posts: 447
Reputation: 10,735

Post » Thu Jan 16, 2014 5:44 am

It shouldn't matter on a modern pc, but it can on some mobiles.
Image ImageImage
B
168
S
50
G
163
Posts: 8,221
Reputation: 105,061

Post » Thu Jan 16, 2014 6:06 am

So on mobiles it is favorable to use tiledbg even if the size itself is bigger then?
B
58
S
18
G
13
Posts: 447
Reputation: 10,735

Post » Thu Jan 16, 2014 10:04 am

If you make it non-square and not a power of 2, then on export C2 will create a power of 2 texture for it at the next size that will fit into those rules.
B
49
S
12
G
10
Posts: 1,833
Reputation: 14,573


Return to How do I....?

Who is online

Users browsing this forum: davidbox, Mayfly and 5 guests