X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fxonotic.git;a=blobdiff_plain;f=misc%2Ftools%2Fthe-big-benchmark%2Fthe-big-benchmark.bat;h=4fb4a10dd6653b29b62930caf062f234e1578950;hp=e853a6831fb1964299fbae21dbc582b47266bd0e;hb=325024352b77958827f99c06e635899a1711171b;hpb=072bda29b04381d5bfd5b05d39773147015d5c1b diff --git a/misc/tools/the-big-benchmark/the-big-benchmark.bat b/misc/tools/the-big-benchmark/the-big-benchmark.bat index e853a683..4fb4a10d 100644 --- a/misc/tools/the-big-benchmark/the-big-benchmark.bat +++ b/misc/tools/the-big-benchmark/the-big-benchmark.bat @@ -16,7 +16,7 @@ goto postarg :noarg if "%ProgramFiles(x86)%" == "" goto bit32 :bit64 -set xonotic=xonotic-64.exe +set xonotic=xonotic-x64.exe goto postarg :bit32 set xonotic=xonotic.exe @@ -26,63 +26,69 @@ goto postarg if exist data\the-big-benchmark.log del data\the-big-benchmark.log if exist data\benchmark.log del data\benchmark.log if exist data\engine.log del data\engine.log -set p=+developer 1 -nohome -benchmarkruns 4 -benchmarkruns_skipfirst -benchmark demos/the-big-keybench.dem +set p=+vid_width 1024 +vid_height 768 +vid_desktopfullscreen 0 +cl_curl_enabled 0 +r_texture_dds_load 1 +cl_playerdetailreduction 0 +developer 1 -nohome -benchmarkruns 4 -benchmarkruns_skipfirst -benchmark demos/the-big-keybench.dem -if exist data\benchmark.log del data\benchmark.log -echo + %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-omg.cfg %p% >> data\engine.log -%xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-omg.cfg %p% >> data\engine.log 2>&1 -find "]quit" data\engine.log >nul -if not errorlevel 1 goto done -type data\engine.log >> data\the-big-benchmark.log -type data\benchmark.log >> data\the-big-benchmark.log +goto start +:benchmark +echo Benchmarking on %e% if exist data\benchmark.log del data\benchmark.log -echo + %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-low.cfg %p% >> data\engine.log -%xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-low.cfg %p% >> data\engine.log 2>&1 +echo + %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-%e%.cfg %p% > data\engine.log +%xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-%e%.cfg %p% >> data\engine.log 2>&1 +find "MED: " data\engine.log find "]quit" data\engine.log >nul if not errorlevel 1 goto done type data\engine.log >> data\the-big-benchmark.log type data\benchmark.log >> data\the-big-benchmark.log +if not "%e%" == "med" goto nomed +find "checking for OpenGL 2.0 core features... not detected" data\engine.log >nul +if errorlevel 1 goto nomed +echo OpenGL 2.0 or later required for Normal quality and higher, exiting. +goto done +:nomed +if not "%e%" == "med" goto nomed2 +find "Using GL1.3 rendering path" data\engine.log >nul +if errorlevel 1 goto nomed2 +echo OpenGL 2.0 rendering disabled, exiting. +goto done +:nomed2 +if not "%e%" == "high" goto nohigh +find "vid_soft 1" data\engine.log >nul +if errorlevel 1 goto nohigh +echo Software rendering does not support Ultra and Ultimate quality settings, exiting. +goto done +:nohigh +goto z%e% -if exist data\benchmark.log del data\benchmark.log -echo + %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-med.cfg %p% >> data\engine.log -%xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-med.cfg %p% >> data\engine.log 2>&1 -find "]quit" data\engine.log >nul -if not errorlevel 1 goto done -type data\engine.log >> data\the-big-benchmark.log -type data\benchmark.log >> data\the-big-benchmark.log +:start -if exist data\benchmark.log del data\benchmark.log -echo + %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-normal.cfg %p% >> data\engine.log -%xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-normal.cfg %p% >> data\engine.log 2>&1 -find "]quit" data\engine.log >nul -if not errorlevel 1 goto done -type data\engine.log >> data\the-big-benchmark.log -type data\benchmark.log >> data\the-big-benchmark.log +set e=omg +goto benchmark +:zomg -if exist data\benchmark.log del data\benchmark.log -echo + %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-high.cfg %p% >> data\engine.log -%xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-high.cfg %p% >> data\engine.log 2>&1 -find "]quit" data\engine.log >nul -if not errorlevel 1 goto done -type data\engine.log >> data\the-big-benchmark.log -type data\benchmark.log >> data\the-big-benchmark.log +set e=low +goto benchmark +:zlow -if exist data\benchmark.log del data\benchmark.log -echo + %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-ultra.cfg %p% >> data\engine.log -%xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-ultra.cfg %p% >> data\engine.log 2>&1 -find "]quit" data\engine.log >nul -if not errorlevel 1 goto done -type data\engine.log >> data\the-big-benchmark.log -type data\benchmark.log >> data\the-big-benchmark.log +set e=med +goto benchmark +:zmed -if exist data\benchmark.log del data\benchmark.log -echo + %xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-ultimate.cfg %p% >> data\engine.log -%xonotic% %2 %3 %4 %5 %6 %7 %8 %9 +exec effects-ultimate.cfg %p% >> data\engine.log 2>&1 -find "]quit" data\engine.log >nul -if not errorlevel 1 goto done -type data\engine.log >> data\the-big-benchmark.log -type data\benchmark.log >> data\the-big-benchmark.log +set e=normal +goto benchmark +:znormal + +set e=high +goto benchmark +:zhigh + +set e=ultra +goto benchmark +:zultra + +set e=ultimate +goto benchmark +:zultimate :done