Hi. I’m using the “nv” driver (that comes with Redhat 9.0), and I’m able to get hardware surfaces and acceleration.
Regards,
Carlos----- Original Message -----
From: Jimmy
To: SDL Mailing List
Sent: Sunday, June 08, 2003 1:54 PM
Subject: Re: [SDL] hardware acceleration
The answer you probably don’t want to get, is the only one I can think of. Use OpenGL. I may be wrong, but I think you can diddle with the permissions on memory and setuid of certain files and allow DGA to work as any user, but you have to remember that most people aren’t going to do that. It’s a very pointy edge for any potential users to use your project.
Really, if you want hardware acceleration “for sure” use an accelerated API for the drawing, or glSDL as a driver.
It isn’t that hard really to create a simple Orthographic projection in OpenGL and build a little set of classes up to act give or take like SDL would act with SDL blits. Then you can use SDL for everything except drawing.
As far as the graphics driver, you’ll have acceleration if you’ve done both of:
- downloaded and run the NVIDIA-Linux-arch-x.y.z.run (It’s 1.0-4363 right now)
- You’re using Driver “nvidia” in your XF86Config instead of the default “nv” driver.
On Sun, 2003-06-08 at 10:25, yves baumes wrote:
hello everybody,
I have a question:
Is there a way to get hardware acceleration (in windowed mode or not),
without being root?
(as it is told in the faq)
I am using linux with X server and a tnt2 video car (model 64, 32 Mb of
memory). The nvidia driver are installed, as when I launch x server
there is a “splash” screen with nvidia logo.
Also there is another thing I don’t understand. I wrote this programm:
screen = SDL_SetVideoMode(WIDTH, HEIGHT, 32,
SDL_ANYFORMAT|SDL_HWSURFACE|SDL_FULLSCREEN);
info = (SDL_VideoInfo *)SDL_GetVideoInfo();
if (info->hw_available) {
printf(“hw_available\n”);
} else {
printf(“not hw_available\n”);
}
if (screen->flags && SDL_HWSURFACE) {
printf(“SDL_HWSURFACE\n”);
}
if (screen->flags && SDL_SWSURFACE) {
printf(“SDL_SWSURFACE\n”);
}
and here is the result:
not hw_available
SDL_HWSURFACE
hum. How hw cannot be available and be used ;o ?
Is this a known bug with SDL_GetVideoInfo() ?
thanks for answer.
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl-- Jimmy Jimmy’s World