[SDL] OpenGL or pure SDL gfx?
ryanh at uidaho.edu
Tue Sep 16 10:52:01 PDT 2003
I had a similar problem getting a hardware surface on an nvidia card,
until I set SDL_VIDEODRIVER=dga in the environment and ran the program as
root. In my case, double-buffering only made things much slower though
because most of my drawing was already done in software-favoring ways.
On Tue, 16 Sep 2003, Henning wrote:
> > I may be wrong, it's been a while since I did this, but you should use the
> > SDL_SetColorKey BEFORE converting the surface to the display format, so your
> Tried it, but it doesn't make much difference, if any. At least nothing I can see. The scrolling is about the same. Thanks for the tip about colorkey anyway, I'll try and remember it.
> As for delaying or not. If I choose to delay between screen updates then scrolling gets worse. If I try to fix the frame rate, the scrolling gets worse. I don't know if this is because my video driver is "good", but at least I shouldn't do it, it seems.
> I'm not able to get a hw-surface (thanks for pointing out the error in the code for detecting that steve) even though I try. Not a doublebuffer either. I use nvidias own driver for linux, but I guess it doesn't help much (seems to work with other peoples GL apps though, like chromium).
> SDL mailing list
> SDL at libsdl.org
More information about the SDL