5 if [ -d "${0%/*}" ]; then
10 echo "The Big Benchmark"
11 echo " ================="
14 echo "WARNING: running this script will destroy ANY local changes you"
15 echo "might have on the repository that haven't been pushed yet."
17 if [ x"$1" != x"--yes" ]; then
18 echo "Are you absolutely sure you want to run this?"
41 elif [ -z "$*" ]; then
44 set -- ./Xonotic.app/Contents/MacOS/xonotic-osx-sdl
47 set -- ./xonotic-linux-sdl.sh
50 echo "OS not detected. Usage:"
51 echo " $0 how-to-run-xonotic"
52 echo "On Windows when using a release build or an autobuild,"
53 echo "use the-big-benchmark.bat instead!"
58 rm -f data/the-big-benchmark.log
59 rm -f data/benchmark.log
61 p="+developer 1 -nohome -benchmarkruns 4 -benchmarkruns_skipfirst -benchmark demos/the-big-keybench.dem"
62 for e in omg low med normal high ultra ultimate; do
63 rm -f data/benchmark.log
64 echo + "$@" +exec effects-$e.cfg $p > data/engine.log
65 "$@" +exec effects-$e.cfg $p >>data/engine.log 2>&1
66 if grep -xF ']quit' data/engine.log >/dev/null; then
69 cat data/engine.log >> data/the-big-benchmark.log
70 cat benchmark.log >> data/the-big-benchmark.log
72 rm -f data/benchmark.log
79 echo "Please provide the the following info to the Xonotic developers:"
82 echo " - graphics card (which vendor, which model)"
83 echo " - operating system (including whether it is 32bit or 64bit)"
84 echo " - graphics driver version"
85 echo " - the file the-big-benchmark.log in the data directory"