100 sprites:
C:\VC\SDL-1.2.13\test>Release\testsprite.exe -width 1920 -height 1200 -bpp 8 -fa
st
Screen is at 8 bits per pixel
Screen is in system memory
Sprite is in system memory
Sprite blit uses RLE acceleration
997.21 frames per second
C:\VC\SDL-1.2.13\test>Release\testsprite.exe -width 1920 -height 1200 -bpp 32 -f
ast
Screen is at 32 bits per pixel
Screen is in system memory
Sprite is in system memory
Sprite blit uses RLE acceleration
213.63 frames per second
32-bit is 4.66x slower than 8-bit, that’s a bit weird.
1000 sprites:
C:\VC\SDL-1.2.13\test>Release\testsprite.exe -width 1920 -height 1200 -bpp 8 -fa
st
Screen is at 8 bits per pixel
Screen is in system memory
Sprite is in system memory
Sprite blit uses RLE acceleration
160.18 frames per second
C:\VC\SDL-1.2.13\test>Release\testsprite.exe -width 1920 -height 1200 -bpp 32 -f
ast
Screen is at 32 bits per pixel
Screen is in system memory
Sprite is in system memory
Sprite blit uses RLE acceleration
88.03 frames per second
1.8x slower
10000 sprites:
C:\VC\SDL-1.2.13\test>Release\testsprite.exe -width 1920 -height 1200 -bpp 8 -fa
st
Screen is at 8 bits per pixel
Screen is in system memory
Sprite is in system memory
Sprite blit uses RLE acceleration
16.59 frames per second
C:\VC\SDL-1.2.13\test>Release\testsprite.exe -width 1920 -height 1200 -bpp 32 -f
ast
Screen is at 32 bits per pixel
Screen is in system memory
Sprite is in system memory
Sprite blit uses RLE acceleration
12.29 frames per second
1.35x slower
The second test blits 1000 x 32 x 32 = 1024000 pixels, which is less
than half the screen without taken overdraw into account.
The last test may blit a bit too much, but the frame rate is very low
already and that’s with just blitting.
I also don’t understand the relation between 8-bit and 32-bit.On Wed, Apr 16, 2008 at 8:32 PM, Will Langford wrote:
if you take the sdl test sprite test app that does a bunch of smiley
faces… and tweak the code to do the size and bitdepth of screen
you’re looking for… and give that a go… might be a decent place
to start for ‘where bottleneck lies’. Ya can then also go about
changing the count, or size of the smiley face sprite, etc etc etc.