Performance Testing with Background Images

Discussion and feedback on Construct 2

Post » Wed Feb 27, 2013 10:59 pm

Has anyone done any perf testing on desktop and mobile in regards to background tiles?

Lets say I make a background map that is 3000x3000.

Ideally I would break that up into smaller chunks so the system can render less stuff that is offscreen.

To that end, what is the right size?

256x256? 1200x1200?

How big of chunks should I break my 3000x3000 image up into.

These are not repeating pieces so tiledBG is not an option.

B
30
S
10
G
7
Posts: 416
Reputation: 7,239

Post » Wed Feb 27, 2013 11:03 pm

I've put 50.000 sprites with 5000x5000 pixels in size at some point - it basically destroyed my browser :D
...but before that with 5000x5000 I had steady 60fps with something about 1000 sprites on screen.
ImageImageImageImage
B
140
S
58
G
36
Posts: 2,547
Reputation: 31,170

Post » Wed Feb 27, 2013 11:31 pm

[QUOTE=shinkan] I've put 50.000 sprites with 5000x5000 pixels in size at some point - it basically destroyed my browser :D
...but before that with 5000x5000 I had steady 60fps with something about 1000 sprites on screen.[/QUOTE]

So I guess I'm really talking about how the system handles the size of sprites rather than count. On mobile and desktop. If I have one giant sprite that I move around rather than 10 smaller ones.
B
30
S
10
G
7
Posts: 416
Reputation: 7,239

Post » Thu Feb 28, 2013 12:50 am

Graphics cards do not render anything offscreen automatically.
Moderator
B
88
S
32
G
33
Posts: 3,005
Reputation: 27,432

Post » Thu Feb 28, 2013 12:59 am

See Best Practices. You should definitely not use lots of big images like that, not because it's slow, but because you'll run out of memory.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Thu Feb 28, 2013 1:47 am

[QUOTE=Ashley] See Best Practices. You should definitely not use lots of big images like that, not because it's slow, but because you'll run out of memory.[/QUOTE]

Perfect, I am going to stick with 500x500 for now and try 256 if it helps :)
B
30
S
10
G
7
Posts: 416
Reputation: 7,239


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 8 guests