blob: 32c2e162ef593c28caa4ea3ac826b8e9192e61d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
test -e "$UNIGINE_VALLEY_FOLDER/bin/valley_x64" || return 1
function __unigine_valley_run__ {
cd "$UNIGINE_VALLEY_FOLDER" # Set this variable in test_options.sh
fullscreen=$1
width=$2
height=$3
LD_LIBRARY_PATH=bin:bin/x64:$LD_LIBRARY_PATH \
run_bench 215 ./bin/valley_x64 \
-video_app opengl \
-data_path ../ \
-sound_app null \
-engine_config ../data/valley_1.0.cfg \
-system_script valley/unigine.cpp \
-extern_define PHORONIX,LANGUAGE_EN,RELEASE,QUALITY_HIGH,TESSELLATION_NORMAL \
-video_mode -1 -video_width $width -video_height $height -video_multisample 0 \
-video_fullscreen $fullscreen | grep FPS: | xargs | cut -d ' ' -f 2
}
while read name width height; do
name="unigine:valley:${name}"
eval "$name:fullscreen_run() { __unigine_valley_run__ 1 $width $height; }"
test_name="$test_name $name:fullscreen"
eval "$name:window_run() { __unigine_valley_run__ 0 $width $height; }"
test_name="$test_name $name:window"
done<<EOL
720p 1280 720
1080p 1920 1080
EOL
eval "unigine:valley:cpu_run() { INTEL_NO_HW=1 __unigine_valley_run__ 0 $width $height; }"
test_name="$test_name unigine:valley:cpu"
test_exec_time=200
|