tile vs sprite - which is better?

Discussion and feedback on Construct 2

Post » Wed Sep 05, 2012 11:01 pm

If I want a static black bar to strech across the top of the layout, would it be better to create a single 1024x60 image and past it in as a sprite, or create a 1x60 image and create a tiled background and let it strech across?

Both will look the same.

Im guessing the tile version will adversly affect performance on slow devices such as the iphone3? This would outway the benifit of a smaller file to download. Or perhaps the sprite, even if not being animated, reduces performance?

By performance I mean FPS and responsivness of GUI.

Any thoughts?
B
15
S
5
G
2
Posts: 357
Reputation: 3,691

Post » Wed Sep 05, 2012 11:02 pm

If you want just a completely black bar, why not make a 1x1 pixel sprite and stretch it?
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Wed Sep 05, 2012 11:18 pm

On a well-implemented hardware accelerated renderer they are probably identical. I think Optimisation: don't waste your time applies.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,478

Post » Wed Sep 05, 2012 11:33 pm

Well, in terms of VRAM, using a 1x1 tiled BG in favor of a 1024x60 sprite would be wise.
Image
B
225
S
27
G
13
Posts: 1,774
Reputation: 18,024


Return to Construct 2 General

Who is online

Users browsing this forum: NetOne and 1 guest