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?"
36 rm -f data/benchmark.log
42 elif [ -z "$*" ]; then
45 set -- ./Xonotic.app/Contents/MacOS/xonotic-osx-sdl
48 set -- ./xonotic-linux-sdl.sh
51 echo "OS not detected. Usage:"
52 echo " $0 how-to-run-xonotic"
53 echo "On Windows when using a release build or an autobuild,"
54 echo "use the-big-benchmark.bat instead!"
61 echo "Engine log follows:"
62 echo " ==================="
64 for e in omg low med normal high ultra ultimate; do
67 +exec effects-$e.cfg \
70 -benchmarkruns 4 -benchmarkruns_skipfirst \
71 -benchmark demos/the-big-keybench.dem
73 ) >data/engine.log 2>&1
74 cat data/engine.log >> data/benchmark.log
82 echo "Please provide the the following info to the Xonotic developers:"
85 echo " - graphics card (which vendor, which model)"
86 echo " - operating system (including whether it is 32bit or 64bit)"
87 echo " - graphics driver version"
88 echo " - the file benchmark.log in the data directory"