]> git.xonotic.org Git - xonotic/xonotic.git/blob - misc/tools/the-big-benchmark.bat
some fixes for the benchmark batch file
[xonotic/xonotic.git] / misc / tools / the-big-benchmark.bat
1 @echo off\r
2 \r
3 cd ..\..\r
4 \r
5 echo The Big Benchmark\r
6 echo  =================\r
7 echo.\r
8 if not exist all goto nogit\r
9 echo For Git builds, please use the-big-benchmark.sh instead!\r
10 goto end\r
11 :nogit\r
12 del data\benchmark.log\r
13 del data\engine.log\r
14 if "%1" == "" then goto noarg\r
15 set xonotic=%1\r
16 goto postarg\r
17 if "%ProgramFiles(x86)%" == "" goto bit32\r
18 :bit64\r
19 set xonotic=xonotic-64.exe\r
20 goto postarg\r
21 :bit32\r
22 set xonotic=xonotic.exe\r
23 goto postarg\r
24 :postarg\r
25 echo. > data/engine.log\r
26 echo Engine log follows: >> data/engine.log\r
27 echo  =================== >> data/engine.log\r
28 set p=-nohome -benchmarkruns 4 -benchmarkruns_skipfirst -benchmark demos/the-big-keybench.dem\r
29 \r
30 echo + %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-omg.cfg %p% >> data/engine.log\r
31 %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-omg.cfg %p% >> data/engine.log 2>&1\r
32 echo + %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-low.cfg %p% >> data/engine.log\r
33 %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-low.cfg %p% >> data/engine.log 2>&1\r
34 echo + %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-med.cfg %p% >> data/engine.log\r
35 %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-med.cfg %p% >> data/engine.log 2>&1\r
36 echo + %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-normal.cfg %p% >> data/engine.log\r
37 %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-normal.cfg %p% >> data/engine.log 2>&1\r
38 echo + %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-high.cfg %p% >> data/engine.log\r
39 %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-high.cfg %p% >> data/engine.log 2>&1\r
40 echo + %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-ultra.cfg %p% >> data/engine.log\r
41 %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-ultra.cfg %p% >> data/engine.log 2>&1\r
42 echo + %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-ultimate.cfg %p% >> data/engine.log\r
43 %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-ultimate.cfg %p% >> data/engine.log 2>&1\r
44 type data/engine.log >> data/benchmark.log\r
45 del data/engine.log\r
46 echo.\r
47 echo Please provide the the following info to the Xonotic developers:\r
48 echo  - CPU speed\r
49 echo  - memory size\r
50 echo  - graphics card (which vendor, which model)\r
51 echo  - operating system (including whether it is 32bit or 64bit)\r
52 echo  - graphics driver version\r
53 echo  - the file benchmark.log in the data directory\r
54 echo\r
55 echo Thank you\r
56 :end\r
57 pause\r