SDL Hardware Acceleration under Win32 and Linux

I compiled the same code under Win32 (the last development version) and
Linux (the last stable version) and noticed that, using a Matrox Mystique
220, I get hardware surfaces, blits, etc…, while under Linux don’t. Is is
all just because X11 doesn’t accelerate my graphic board?.

How can I use an SDL program under the linux console? When I do it I get a
memory violation…

Marco Iannaccone @Marco_Iannaccone
ICQ: 18748121 Tolkien

“I’ve… seen things you people wouldn’t believe. Attack ships on fire off
the shoulder of Orion.
I watched C-beams… glitter in the dark near the Tanhauser Gate. All
those… moments will be lost… in time…, like… tears… in… rain.”

FAQ it.comp.lang.c: http://www.programmazione.it/linguaggi/c/itcomplangc.htm
FAQ it.comp.lang.c++: http://www.programmazione.it/linguaggi/c/lang_faq.htm

I compiled the same code under Win32 (the last development version) and
Linux (the last stable version) and noticed that, using a Matrox Mystique
220, I get hardware surfaces, blits, etc…, while under Linux don’t. Is is
all just because X11 doesn’t accelerate my graphic board?.

For the purposes of SDL, using DirectX in windowed mode is equivalent to
using X11 in windowed mode, and using DirectX in fullscreen mode is
equivalent to using XFree86 4.0 DGA 2.0 as root.

Try setting the environment variable SDL_VIDEODRIVER to “dga” and then
running your application as root, after upgrading to XFree86 4.0. :slight_smile:

How can I use an SDL program under the linux console? When I do it I get a
memory violation…

I don’t know. Does it work properly under DirectX? (i.e. do you lock
surfaces properly, respect pitch, etc?)

See ya!
-Sam Lantinga, Lead Programmer, Loki Entertainment Software