2002-02-09 23:20:50 +00:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# Enable some 3Dfx OpenGL hints
|
|
|
|
#
|
|
|
|
export MESA_GLX_FX="f"
|
|
|
|
export MESA_CONFIG="quake2"
|
|
|
|
#
|
|
|
|
# Disable the 3Dfx GLIDE logo
|
|
|
|
#
|
|
|
|
export FX_GLIDE_NO_SPLASH="1"
|
|
|
|
#
|
|
|
|
# Change the swap buffers in Voodoo FIFO from 2 to 4
|
|
|
|
#
|
|
|
|
export MESA_FX_SWAP_PENDING="4"
|
|
|
|
#
|
|
|
|
# Print Mesa statistics at end of game
|
|
|
|
#
|
|
|
|
export MESA_FX_INFO="1"
|
|
|
|
#
|
|
|
|
# Enable monitor's vertical refresh rate syncing on _most_ NVidia cards.
|
|
|
|
# (see /usr/share/doc/NVIDIA_GLX-1.0/README)
|
|
|
|
export __GL_SYNC_TO_VBLANK="1"
|
|
|
|
#
|
|
|
|
# Enable Full Scene Anti-Aliasing on NVidia cards who supports it.
|
|
|
|
# (see /usr/share/doc/NVIDIA_GLX-1.0/README)
|
|
|
|
export __GL_FSAA_MODE="3"
|
|
|
|
#
|
|
|
|
# Note: this is *mandatory* with single-threaded applications
|
2002-07-17 02:09:00 +00:00
|
|
|
# like d2x-gl on systems equipped with NVidia cards and an old
|
2002-02-09 23:20:50 +00:00
|
|
|
# version of ld.so.
|
|
|
|
# (see /usr/share/doc/NVIDIA_GLX-1.0/README)
|
|
|
|
#
|
|
|
|
export __GL_SINGLE_THREADED="1"
|
|
|
|
#
|
|
|
|
# Finally, run the real game.
|
|
|
|
# All switches can be overwritten by command-line arguments.
|
|
|
|
#
|
2002-07-17 02:09:00 +00:00
|
|
|
nice /usr/games/d2x-gl.real -tmap fp -nocdrom -nomovies \
|
2002-02-09 23:20:50 +00:00
|
|
|
-gl_mipmap -gl_alttexmerge -gl_reticle 2 \
|
|
|
|
-nofades \
|
|
|
|
$1 $2 $3 $4 $5
|
|
|
|
|