101 lines
2.8 KiB
Plaintext
101 lines
2.8 KiB
Plaintext
+ . /c/git/bt411/scratchpad/night6/bench_common.sh
|
|
++ BT_ROOT=/c/git/bt411
|
|
++ BT_EXE=/c/git/bt411/build/Release/btl4.exe
|
|
++ BT_PIDFILE=/tmp/bt_bench_pids.563
|
|
+ cd /c/git/bt411/content
|
|
+ run_one gp 1
|
|
+ taskkill //F //IM btl4.exe
|
|
+ sleep 2
|
|
+ rm -f sp_gp_a.log sp_gp_b.log sp_gp_relay.log
|
|
+ bt_expert_egg MP.EGG SP.EGG
|
|
+ sed 's/^experience=.*/experience=expert/' MP.EGG
|
|
+ sed -i 's/^map=.*/map=grass/; s/^time=.*/time=day/; s/^vehicle=.*/vehicle=madcat/' SP.EGG
|
|
+ export BT_GOTO=enemy BT_GOTO_STOP=120 BT_AUTOFIRE=1 BT_AF_PERIOD=3
|
|
+ BT_GOTO=enemy
|
|
+ BT_GOTO_STOP=120
|
|
+ BT_AUTOFIRE=1
|
|
+ BT_AF_PERIOD=3
|
|
+ export BT_MP_LOG=1
|
|
+ BT_MP_LOG=1
|
|
+ bt_launch sp_gp_b.log SP.EGG 0x0C -net 1601
|
|
+ local log=sp_gp_b.log egg=SP.EGG aff=0x0C
|
|
+ shift 3
|
|
+ bt_player_env
|
|
+ export BT_PLATFORM=glass
|
|
+ BT_PLATFORM=glass
|
|
+ export BT_START_INSIDE=1
|
|
+ BT_START_INSIDE=1
|
|
+ export BT_DEV_GAUGES=1
|
|
+ BT_DEV_GAUGES=1
|
|
+ export BT_LOG=sp_gp_b.log BT_AFFINITY=0x0C
|
|
+ BT_LOG=sp_gp_b.log
|
|
+ BT_AFFINITY=0x0C
|
|
+ for _i in 1 2 3 4 5
|
|
+ '[' -f /proc/571/winpid ']'
|
|
+ /c/git/bt411/build/Release/btl4.exe -egg SP.EGG -net 1601
|
|
+ cat /proc/571/winpid
|
|
+ break
|
|
+ sleep 2
|
|
+ export BT_GOTO=enemy BT_GOTO_STOP=120 BT_AUTOFIRE=1 BT_AF_PERIOD=3
|
|
+ BT_GOTO=enemy
|
|
+ BT_GOTO_STOP=120
|
|
+ BT_AUTOFIRE=1
|
|
+ BT_AF_PERIOD=3
|
|
+ export BT_MP_LOG=1 BT_GLASS_PANELS=1 BT_PLATFORM=glass
|
|
+ BT_MP_LOG=1
|
|
+ BT_GLASS_PANELS=1
|
|
+ BT_PLATFORM=glass
|
|
+ export BT_BEAM_SEGFRESH=1
|
|
+ BT_BEAM_SEGFRESH=1
|
|
+ bt_launch sp_gp_a.log SP.EGG 0x03 -net 1501
|
|
+ local log=sp_gp_a.log egg=SP.EGG aff=0x03
|
|
+ shift 3
|
|
+ bt_player_env
|
|
+ export BT_PLATFORM=glass
|
|
+ BT_PLATFORM=glass
|
|
+ export BT_START_INSIDE=1
|
|
+ BT_START_INSIDE=1
|
|
+ export BT_DEV_GAUGES=1
|
|
+ BT_DEV_GAUGES=1
|
|
+ export BT_LOG=sp_gp_a.log BT_AFFINITY=0x03
|
|
+ BT_LOG=sp_gp_a.log
|
|
+ BT_AFFINITY=0x03
|
|
+ for _i in 1 2 3 4 5
|
|
+ '[' -f /proc/576/winpid ']'
|
|
+ /c/git/bt411/build/Release/btl4.exe -egg SP.EGG -net 1501
|
|
+ cat /proc/576/winpid
|
|
+ break
|
|
+ sleep 5
|
|
+ local RELAY=579
|
|
+ sleep 180
|
|
+ python ../tools/btconsole.py SP.EGG 127.0.0.1:1501 127.0.0.1:1601
|
|
+ kill 579
|
|
+ sleep 3
|
|
+ bt_kill_ours
|
|
+ '[' -f /tmp/bt_bench_pids.563 ']'
|
|
+ read -r pid
|
|
+ '[' -n 17064 ']'
|
|
+ taskkill //F //PID 17064
|
|
+ read -r pid
|
|
+ '[' -n 1532 ']'
|
|
+ taskkill //F //PID 1532
|
|
+ read -r pid
|
|
+ rm -f /tmp/bt_bench_pids.563
|
|
+ sleep 2
|
|
+ taskkill //F //IM btl4.exe
|
|
+ sleep 3
|
|
+ echo '=================== #149 SEGPERF A/B ==================='
|
|
=================== #149 SEGPERF A/B ===================
|
|
+ for t in fresh legacy
|
|
+ echo '--- fresh ---'
|
|
--- fresh ---
|
|
+ python -
|
|
rstat blocks=116 avg-med=10.46ms maxDraw-med=15.79 maxDraw-worst=729.8 blocks>50ms=0
|
|
segperf windows=116 calls-med=471 dirty-med=38 ms-med=0.97 ms-worst=9.06
|
|
+ for t in fresh legacy
|
|
+ echo '--- legacy ---'
|
|
--- legacy ---
|
|
+ python -
|
|
rstat blocks=121 avg-med=11.21ms maxDraw-med=13.43 maxDraw-worst=645.6 blocks>50ms=0
|
|
segperf windows=121 calls-med=364 dirty-med=4 ms-med=0.57 ms-worst=13.45
|