tilled background glitch when scrolling

New releases and general discussions.

Post » Sun Feb 01, 2009 10:57 pm

[quote="deadeye":2qbxip3p][quote="David":2qbxip3p]why are you using a tiled background for these tiles which you dont actually want to tile at all?[/quote:2qbxip3p]

Well, because sometimes you want to have an still image with no animation and doesn't need any special hotspots or image points or other features that a sprite has.

I mean, should we be using sprites in this case?[/quote:2qbxip3p]

i agree - from my simple calculations sprite is much heavier than tilled bg becous have more options.
My professional Royalty Free Music at Scirra Assets Store
--------------------------------
Specs: i5 2500, 16gb of ram, gtx 770, win 7, Focusrite Scarlett 8i6, Mackie mr8mk2, Alesis 320, browsing the net on chrome.
B
71
S
19
G
19
Posts: 1,919
Reputation: 16,910

Post » Mon Feb 02, 2009 1:24 am

Sprites don't really add any more rendering time than tiled backgrounds, so it's fine to use them.
B
3
S
2
G
5
Posts: 1,777
Reputation: 5,529

Post » Mon Feb 02, 2009 3:45 am

Hmm this is something someone should test. Create 10,000 sprites with a single image, check fps, then create 10,000 tiled backgrounds with the same size, check fps. They should be the same...if not then it should be looked into.
B
4
S
2
G
5
Posts: 641
Reputation: 3,011

Post » Mon Feb 02, 2009 4:11 am

They're the same on my machine.
Moderator
B
88
S
32
G
33
Posts: 3,005
Reputation: 27,422

Post » Mon Feb 02, 2009 12:29 pm

Actually on my machine (P4 3Ghz, 7600GT 512mb) 10,000 sprites (64x64) run at 70fps in unlimited mode, and 10,000 tiled backgrounds (64x64) run at only 15fps in unlimited mode :?
B
2
S
1
G
5
Posts: 59
Reputation: 1,518

Post » Mon Feb 02, 2009 12:56 pm

Well, that's enough to dispel the "sprites are slower" myth!
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,544

Post » Mon Feb 02, 2009 1:29 pm

that's very unexpected ... why would tiled background impact framerates more than sprites?
B
2
S
2
G
5
Posts: 293
Reputation: 2,236

Post » Mon Feb 02, 2009 2:13 pm

That was unexpected, and I didn't believe it at first. So I ran my own test.

10,000 64x64 sprites, unlimited framerate: 300fps
10,000 64x64 tiled bg's, unlimited framerate: 230fps

P4 1.3 Ghz, GeForce 6200

I'm stymied. All I've ever heard is that tiles are lighter than sprites. I'm also very curious why mine ran better than BenH's, because he has a better computer and a better graphics card.

Oh, and Mipey... if my crappy computer can handle 10,000 tiles in a layout that well, then you pretty much don't have to worry about your game.
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Mon Feb 02, 2009 4:54 pm

That is good news! :)
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155

Post » Mon Feb 02, 2009 5:16 pm

[quote="deadeye":16qspz1r]I'm also very curious why mine ran better than BenH's, because he has a better computer and a better graphics card.
[/quote:16qspz1r]

Wow, that is weird! The only thing I can think of is that it's not running as well as it should do on my computer. Maybe my graphics drivers need updating or something :?
B
2
S
1
G
5
Posts: 59
Reputation: 1,518

PreviousNext

Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 4 guests