aboutsummaryrefslogtreecommitdiffstats
path: root/code/macosx/timedemo.zsh
blob: 14e834ae34e680f415b18f6b58624836d30e278a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/zsh

buildRoot=./build
executable=$buildRoot/Quake3.app/Contents/MacOS/Quake3
ls -l $executable

flags="$flags +set timedemo 1"
flags="$flags +set s_initsound 0"
flags="$flags +set vm_cgame 1"
flags="$flags +set vm_game 1"
flags="$flags +set r_texturebits 16"
flags="$flags +set r_depthbits 16"
flags="$flags +set r_colorbits 16"
flags="$flags +set stencilbits 8"

flags="$flags +set r_appleTransformHint 1"

echo flags=$flags

function demo {
    echo Demo $*
    $executable $flags +demo $* |& egrep "(seconds|VM)"
}

demo foo