Hi there
I am in the process of writing a small game using SDL. I am very confused
as to exactly what to put for flags in SDL_SetVideoMode.
If I put SDL_HWSURFACE | SDL_DOUBLEBUF | SDL_FULLSCREEN, I get only
SDL_FULLSCREEN, if I compare with the flags that is set on the surface
that is returned. Same if I put SDL_SWSURFACE | SDL_DOUBLEBUF |
SDL_FULLSCREEN or SDL_DOUBLEBUF | SDL_FULLSCREEN.
In any case, performance is not-so-great, with 8-20 fps in
800x600. (Especially blitting seems to hurt a lot).
This is Mandrake 8, which means sdl 1.1.8, XFree86 4.0.3.
Is there a document somewhere that describes how to get at the very least
a doublebuffered surface? Maybe even explain ways to determine what kind
of surface would give the best performance for a given klient?
Thanks in advance,
Mads–
Mads Bondo Dydensborg. @Mads_Bondo_Dydensbor
The Microsoft Dictionary:
interoperability: The ability of a Microsoft product to operate
with another Microsoft product.