Skip to content

Commit

Permalink
Some functional updates to serve.sh and increase MAX_PEER_LAG to 4 se…
Browse files Browse the repository at this point in the history
…conds
  • Loading branch information
camgunz committed May 15, 2016
1 parent e144b5a commit c5edc9b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions serve.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,26 @@ WAD="-file heights2.wad"
WAD=""
WAD="-iwad freedm.wad"
WAD="-file dwango5.wad"
WAD="-file judas23_.wad"
WAD="-file king1.wad"
WAD="-file sunder.wad"
WAD="-file judas23_.wad"

CMD="cbuild/d2k $WAD -skill 5 -warp 1 -nomonsters -serve"
CMD="cbuild/d2k $WAD -skill 5 -warp 1 -deathmatch -frags 5 -serve"
CMD="cbuild/d2k $WAD -skill 4 -warp 1 -serve"
CMD="cbuild/d2k $WAD -skill 5 -warp 1 -nomonsters -altdeath -frags 1 -log /home/charlie/.d2k/log.txt -serve -nodaemon"
CMD="cbuild/d2k $WAD -skill 5 -warp 2 -log /home/charlie/.d2k/log.txt -serve -nodaemon"
CMD="cbuild/d2k $WAD -skill 5 -warp 1 -nomonsters -altdeath -frags 1 -log /home/charlie/.d2k/log.txt -serve -nodaemon"
CMD="cbuild/d2k $WAD -skill 5 -warp 23 -nomonsters -altdeath -frags 1 -log /home/charlie/.d2k/log.txt -serve -nodaemon"

mkdir -p ~/.d2k/scripts

cp "${BASE_DIR}/d2k_config_schema.json" ~/.d2k/
cp "${BASE_DIR}/scripts/"* ~/.d2k/scripts/

# gdb -ex 'source gdbserver.txt' --args $CMD
gdb -ex run --args $CMD
# gdb -ex run --args $CMD
# gdb --args $CMD
# CPUPROFILE=cpu.prof $CMD
# valgrind --leak-check=full --show-leak-kinds=all $CMD
# $CMD
$CMD

2 changes: 1 addition & 1 deletion src/n_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@

#define SERVER_NO_PEER_SLEEP_TIMEOUT 20
#define SERVER_SLEEP_TIMEOUT 1
#define SERVER_MAX_PEER_LAG 70
#define SERVER_MAX_PEER_LAG (TICRATE * 4)
#define MAX_SETUP_REQUEST_ATTEMPTS 5

static int run_tics(int tic_count) {
Expand Down

0 comments on commit c5edc9b

Please sign in to comment.