]> git.xonotic.org Git - xonotic/xonotic.git/blobdiff - misc/tools/the-big-benchmark/the-big-benchmark.bat
Improvements by edh to the benchmark script
[xonotic/xonotic.git] / misc / tools / the-big-benchmark / the-big-benchmark.bat
index be8323024b63ed73cca6a540fd33bd79b2fd6e67..d3e3bb315d6d571a7655bcbc500a81d7031c27a4 100644 (file)
@@ -16,68 +16,68 @@ goto postarg
 :noarg\r
 if "%ProgramFiles(x86)%" == "" goto bit32\r
 :bit64\r
-set xonotic=xonotic-64.exe\r
+set xonotic=xonotic-x64.exe\r
 goto postarg\r
 :bit32\r
 set xonotic=xonotic.exe\r
 goto postarg\r
 :postarg\r
 \r
-del data\the-big-benchmark.log\r
-del data\benchmark.log\r
-del data\engine.log\r
-set p=+developer 1 -nohome -benchmarkruns 4 -benchmarkruns_skipfirst -benchmark demos/the-big-keybench.dem\r
+if exist data\the-big-benchmark.log del data\the-big-benchmark.log\r
+if exist data\benchmark.log del data\benchmark.log\r
+if exist data\engine.log del data\engine.log\r
+set p=+r_texture_dds_load 1 +cl_playerdetailreduction 0 +developer 1 -nohome -benchmarkruns 4 -benchmarkruns_skipfirst -benchmark demos/the-big-keybench.dem\r
 \r
-del data/benchmark.log\r
-echo + %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-omg.cfg %p% >> data\engine.log\r
+if exist data\benchmark.log del data\benchmark.log\r
+echo + %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-omg.cfg %p% > data\engine.log\r
 %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-omg.cfg %p% >> data\engine.log 2>&1\r
 find "]quit" data\engine.log >nul\r
 if not errorlevel 1 goto done\r
 type data\engine.log >> data\the-big-benchmark.log\r
 type data\benchmark.log >> data\the-big-benchmark.log\r
 \r
-del data/benchmark.log\r
-echo + %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-low.cfg %p% >> data\engine.log\r
+if exist data\benchmark.log del data\benchmark.log\r
+echo + %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-low.cfg %p% > data\engine.log\r
 %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-low.cfg %p% >> data\engine.log 2>&1\r
 find "]quit" data\engine.log >nul\r
 if not errorlevel 1 goto done\r
 type data\engine.log >> data\the-big-benchmark.log\r
 type data\benchmark.log >> data\the-big-benchmark.log\r
 \r
-del data/benchmark.log\r
-echo + %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-med.cfg %p% >> data\engine.log\r
+if exist data\benchmark.log del data\benchmark.log\r
+echo + %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-med.cfg %p% > data\engine.log\r
 %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-med.cfg %p% >> data\engine.log 2>&1\r
 find "]quit" data\engine.log >nul\r
 if not errorlevel 1 goto done\r
 type data\engine.log >> data\the-big-benchmark.log\r
 type data\benchmark.log >> data\the-big-benchmark.log\r
 \r
-del data/benchmark.log\r
-echo + %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-normal.cfg %p% >> data\engine.log\r
+if exist data\benchmark.log del data\benchmark.log\r
+echo + %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-normal.cfg %p% > data\engine.log\r
 %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-normal.cfg %p% >> data\engine.log 2>&1\r
 find "]quit" data\engine.log >nul\r
 if not errorlevel 1 goto done\r
 type data\engine.log >> data\the-big-benchmark.log\r
 type data\benchmark.log >> data\the-big-benchmark.log\r
 \r
-del data/benchmark.log\r
-echo + %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-high.cfg %p% >> data\engine.log\r
+if exist data\benchmark.log del data\benchmark.log\r
+echo + %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-high.cfg %p% > data\engine.log\r
 %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-high.cfg %p% >> data\engine.log 2>&1\r
 find "]quit" data\engine.log >nul\r
 if not errorlevel 1 goto done\r
 type data\engine.log >> data\the-big-benchmark.log\r
 type data\benchmark.log >> data\the-big-benchmark.log\r
 \r
-del data/benchmark.log\r
-echo + %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-ultra.cfg %p% >> data\engine.log\r
+if exist data\benchmark.log del data\benchmark.log\r
+echo + %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-ultra.cfg %p% > data\engine.log\r
 %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-ultra.cfg %p% >> data\engine.log 2>&1\r
 find "]quit" data\engine.log >nul\r
 if not errorlevel 1 goto done\r
 type data\engine.log >> data\the-big-benchmark.log\r
 type data\benchmark.log >> data\the-big-benchmark.log\r
 \r
-del data/benchmark.log\r
-echo + %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-ultimate.cfg %p% >> data\engine.log\r
+if exist data\benchmark.log del data\benchmark.log\r
+echo + %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-ultimate.cfg %p% > data\engine.log\r
 %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-ultimate.cfg %p% >> data\engine.log 2>&1\r
 find "]quit" data\engine.log >nul\r
 if not errorlevel 1 goto done\r
@@ -86,8 +86,8 @@ type data\benchmark.log >> data\the-big-benchmark.log
 \r
 :done\r
 \r
-del data\benchmark.log\r
-del data\engine.log\r
+if exist data\benchmark.log del data\benchmark.log\r
+if exist data\engine.log del data\engine.log\r
 \r
 if exist data\the-big-benchmark.log goto logisgood\r
 echo.\r