]> git.mxchange.org Git - flightgear.git/blob - src/Main/3dfx.sh
Melchior FRANZ:
[flightgear.git] / src / Main / 3dfx.sh
1 #!/bin/sh
2
3 if [ "x$1" = "x--full" ]; then
4     echo "Running full screen ..."
5     shift
6     WINDOW=NO
7 else
8     echo "Running in a window, use --full to run full screen."
9     WINDOW=YES
10 fi
11 echo
12
13 if [ $WINDOW = "YES" ]; then
14     # in a window (slow hack)
15     export MESA_GLX_FX=window
16
17     export SST_VGA_PASS=1
18     export SST_NOSHUTDOWN=1
19
20     export SSTV2_VGA_PASS=1
21     export SSTV2_NOSHUTDOWN=1
22 else 
23     # full screen
24     export MESA_GLX_FX=fullscreen
25
26     unset SST_VGA_PASS
27     unset SST_NOSHUTDOWN
28
29     unset SSTV2_VGA_PASS
30     unset SSTV2_NOSHUTDOWN
31 fi
32
33 export FX_GLIDE_NO_SPLASH=1
34 export FX_GLIDE_SWAPINTERVAL=0
35
36 export SST_FASTMEM=1
37 export SST_FASTPCIRD=1
38 export SST_GRXCLK=57
39 export SST_GAMMA=1.0
40 export SST_SCREENREFRESH=60
41
42 export SSTV2_FASTMEM=1
43 export SSTV2_FASTPCIRD=1
44 export SSTV2_GRXCLK=57
45 export SSTV2_GAMMA=1.0
46 export SSTV2_SCREENREFRESH=60
47
48 # Enable this if you wand solid vswap - disable to measure speeds
49 export SST_SWAP_EN_WAIT_ON_VSYNC=0
50 export SSTV2_SWAP_EN_WAIT_ON_VSYNC=0
51
52 # export SST_SWA_EN_WAIT_ON_VSYNC=1
53 # export SSTV2_SWA_EN_WAIT_ON_VSYNC=1
54
55 echo executing $*
56
57 $*