OpenGL fullscreen accel

Hello,

I am working with the SDL GL functionality, trying to use
fullscreen acceleration with my Voodoo3. Using the testgl.c
program, fullscreen mode works fine, but it does not seem to
be accelerated. The frame rate does not increase, and I can
still see the X pointer cursor.

The only way I can get into fullscreen accel is to issue
a call to:

putenv( “MESA_GLX_FX=fullscreen” );

before calling SDL_SetVideoMode();

Is this the proper way to use fullscreen 3dfx accel with SDL+GL?
Is there a more hardware/platform-independent way to use hardware
accel?

I also tried using XMesaSetFXmode( XMESA_FX_FULLSCREEN ),
with no success.

Thanks,
JW–
// John Watson
// Software Engineer – STScI Archive Team

Hello,

I am working with the SDL GL functionality, trying to use
fullscreen acceleration with my Voodoo3. Using the testgl.c
program, fullscreen mode works fine, but it does not seem to
be accelerated. The frame rate does not increase, and I can
still see the X pointer cursor.

The only way I can get into fullscreen accel is to issue
a call to:

putenv( “MESA_GLX_FX=fullscreen” );

before calling SDL_SetVideoMode();

Is this the proper way to use fullscreen 3dfx accel with SDL+GL?
Is there a more hardware/platform-independent way to use hardware
accel?

SDL simply calls either OpenGL or GLX. MESA_GLX_FX toggles a GLX option
which will enable the appropriate GLX driver. Technically, this should be
set by the user as opposed to the client.

Thanks,
JW

Nicholas

Nicholas Vining “While you’re out there struggling
vining at pacificcoast.net with your computer, I’m naked,
icq: 20872003 clueless, and feeling good!”
- Ratbert

----- Original Message -----
From: jwatson0@home.com (John Watson)
To: sdl at lokigames.com
Date: Sunday, February 06, 2000 2:15 PM
Subject: [SDL] OpenGL fullscreen accel

John Watson schrieb am 06 Feb 2000:

Hello,

I am working with the SDL GL functionality, trying to use
fullscreen acceleration with my Voodoo3. Using the testgl.c
program, fullscreen mode works fine, but it does not seem to
be accelerated. The frame rate does not increase, and I can
still see the X pointer cursor.

SDL fullscreen means:

  • if possible, the X display is resized to the desired resolution
  • the window cowers the whole screen and has no decorations

So, if you use a 3dfx card and have MESA_GLX_FX not set to 'fullscreen’
the game runs in software mode.

You can run it accelerated in a window (that’s possibly as large as the
screen) if you get the DRI X-server from http://dri.sourceforge.net

Be warned, it works, but this is still alpha stuff (I boot into
3.3.6 for daily work and into DRI / 3.9.17 for OpenGL development).

Nicholas Vining wrote:>

-----Original Message-----
From: John Watson
To: sdl at lokigames.com
Date: Sunday, February 06, 2000 2:15 PM
Subject: [SDL] OpenGL fullscreen accel

Hello,

I am working with the SDL GL functionality, trying to use
fullscreen acceleration with my Voodoo3. Using the testgl.c
program, fullscreen mode works fine, but it does not seem to
be accelerated. The frame rate does not increase, and I can
still see the X pointer cursor.

The only way I can get into fullscreen accel is to issue
a call to:

putenv( “MESA_GLX_FX=fullscreen” );

before calling SDL_SetVideoMode();

Is this the proper way to use fullscreen 3dfx accel with SDL+GL?
Is there a more hardware/platform-independent way to use hardware
accel?

SDL simply calls either OpenGL or GLX. MESA_GLX_FX toggles a GLX option
which will enable the appropriate GLX driver. Technically, this should be
set by the user as opposed to the client.

Do you have Linux Glide installed? If not, then of course Mesa will not
use Glide for 3D acceleration (read the 3Dfx howto for info). Also, I
hear that the Glide driver for Mesa is still bites… But anyway, check
out:

http://www-hmw.caribel.pisa.it/fxmesa/index.shtml

for info on getting a Mesa driver for Glide.

| Rafael R. Sevilla @Rafael_R_Sevilla |
| Instrumentation, Robotics, and Control Laboratory |

College of Engineering, University of the Philippines, Diliman