[SDL] glSDL backend test

Olaf Leidinger leidola at newcon.de
Tue Jan 18 16:43:27 PST 2005


Hello!

Just installed libsdl-1.2.8 + glSDL patch.

I tested it using supertux 

opengl   ~ 100 FPS
sdl-x11  ~  70 FPS
sdl-gl   ~  45 FPS

./testsprite
Screen is at 32 bits per pixel
Screen is in system memory
Sprite is in system memory
Sprite blit uses RLE acceleration
471.92 frames per second

SDL_VIDEODRIVER=glSDL ./testsprite
glSDL videoinit
Screen is at 8 bits per pixel
Screen is in system memory
Sprite is in system memory
Sprite blit uses RLE acceleration
1.16 frames per second

Then I forced it to use a HWSURFACE

SDL_VIDEODRIVER=glSDL ./testsprite  
glSDL videoinit
Screen is at 8 bits per pixel
Screen is in video memory
Sprite is in video memory
2622.03 frames per second

Finally I edited supertux setup.cpp around line 675 to use SDL_HWSURFACE
and I got:

opengl   ~ 100 FPS
sdl-x11  ~  70 FPS
sdl-gl   ~ 100 FPS

(opengl seems to be slowed-down to 100 FPS...)

But when using sdl-gl some sprites are flickering badly - don't know
what's the reason.

*******

Wouldn't it make sense to use SDL_HWSURFACE as a default value when
using glSDL? Otherwise it's painfully slow...


My system:

Gentoo, Kernel 2.6.9
Xorg 6.8.0 using a Radeon 9600 with the latest driver ( *finally* ;-) )


BTW: I'm not subscribed to the list.

Ciao,

Olaf







More information about the SDL mailing list