1 | #!/bin/sh
|
---|
2 |
|
---|
3 | # add bin to path
|
---|
4 | export PATH=../bin:$PATH
|
---|
5 |
|
---|
6 | #TARGET=debug
|
---|
7 | TARGET=release
|
---|
8 |
|
---|
9 | PROGRAM=../bin/$TARGET/Preprocessor.exe
|
---|
10 |
|
---|
11 | EXT=obj
|
---|
12 | SCENE=vienna_cropped
|
---|
13 | SCENE_PATH=../data/vienna
|
---|
14 |
|
---|
15 | #SCENE=arena-high-lods
|
---|
16 | #SCENE_PATH=../data/Arena
|
---|
17 |
|
---|
18 | ENVIRONMENT=gi_final.env
|
---|
19 |
|
---|
20 | LOG_PREFIX=../scripts/tests/gi/$SCENE-speed
|
---|
21 |
|
---|
22 | echo "starting $TARGET mode for $SCENE scene ($PROGRAM)"
|
---|
23 |
|
---|
24 | SCENE_FILENAME=$SCENE_PATH/$SCENE.$EXT
|
---|
25 |
|
---|
26 | #######################################################
|
---|
27 |
|
---|
28 | USE_HEUR=true
|
---|
29 | METHOD=int
|
---|
30 | echo "$SCENE $METHOD"
|
---|
31 |
|
---|
32 |
|
---|
33 | #$PROGRAM $ENVIRONMENT \
|
---|
34 | -scene_filename=$SCENE_FILENAME \
|
---|
35 | -view_cells_sampling_type=object_directional \
|
---|
36 | -view_cells_evaluation_stats_prefix=$LOG_PREFIX-$METHOD \
|
---|
37 | -view_cells_merge_stats=$LOG_PREFIX-$METHOD-mergeStats.log \
|
---|
38 | -view_cells_filename=$LOG_PREFIX-$METHOD-viewcells.xml.gz \
|
---|
39 | -vsp_subdivision_stats=$LOG_PREFIX-$METHOD-vsp-subdivisionStats.log \
|
---|
40 | -bvh_subdivision_stats=$LOG_PREFIX-$METHOD-bvh-subdivisionStats.log \
|
---|
41 | -hierarchy_subdivision_stats=$LOG_PREFIX-$METHOD-hierarchy-subdivisionStats.log \
|
---|
42 | -hierarchy_construction_type=2 \
|
---|
43 | -hierarchy_construction_min_avg_rays_per_object=0 \
|
---|
44 | -hierarchy_construction_max_avg_rays_per_object=0 \
|
---|
45 | -bvh_use_sah=false \
|
---|
46 | -vsp_use_cost_heuristics=$USE_HEUR
|
---|
47 |
|
---|
48 | #sh movefiles.sh $LOG_PREFIX-$METHOD
|
---|
49 |
|
---|
50 | #######################################################
|
---|
51 |
|
---|
52 | NODES=60000
|
---|
53 | #NODES=5000
|
---|
54 | USE_HEUR=true
|
---|
55 | #USE_HEUR=false
|
---|
56 |
|
---|
57 | METHOD=seq-$NODES
|
---|
58 | echo "$SCENE $METHOD"
|
---|
59 |
|
---|
60 | $PROGRAM $ENVIRONMENT \
|
---|
61 | -scene_filename=$SCENE_FILENAME \
|
---|
62 | -view_cells_evaluation_stats_prefix=$LOG_PREFIX-$METHOD \
|
---|
63 | -view_cells_merge_stats=$LOG_PREFIX-$METHOD-mergeStats.log \
|
---|
64 | -view_cells_filename=$LOG_PREFIX-$METHOD-viewcells.xml.gz \
|
---|
65 | -vsp_subdivision_stats=$LOG_PREFIX-$METHOD-vsp-subdivisionStats.log \
|
---|
66 | -bvh_subdivision_stats=$LOG_PREFIX-$METHOD-bvh-subdivisionStats.log \
|
---|
67 | -hierarchy_subdivision_stats=$LOG_PREFIX-$METHOD-hierarchy-subdivisionStats.log \
|
---|
68 | -hierarchy_construction_type=0 \
|
---|
69 | -hierarchy_construction_consider_memory=false \
|
---|
70 | -vsp_use_cost_heuristics=$USE_HEUR \
|
---|
71 | -bvh_term_max_leaves=$NODES
|
---|
72 |
|
---|
73 | sh movefiles.sh $LOG_PREFIX-$METHOD
|
---|
74 |
|
---|
75 |
|
---|
76 | #######################################################
|
---|
77 |
|
---|
78 | NODES=10000
|
---|
79 | USE_HEUR=true
|
---|
80 | #USE_HEUR=false
|
---|
81 |
|
---|
82 | METHOD=seq-$NODES
|
---|
83 | echo "$SCENE $METHOD"
|
---|
84 |
|
---|
85 | $PROGRAM $ENVIRONMENT \
|
---|
86 | -scene_filename=$SCENE_FILENAME \
|
---|
87 | -view_cells_evaluation_stats_prefix=$LOG_PREFIX-$METHOD \
|
---|
88 | -view_cells_merge_stats=$LOG_PREFIX-$METHOD-mergeStats.log \
|
---|
89 | -view_cells_filename=$LOG_PREFIX-$METHOD-viewcells.xml.gz \
|
---|
90 | -vsp_subdivision_stats=$LOG_PREFIX-$METHOD-vsp-subdivisionStats.log \
|
---|
91 | -bvh_subdivision_stats=$LOG_PREFIX-$METHOD-bvh-subdivisionStats.log \
|
---|
92 | -hierarchy_subdivision_stats=$LOG_PREFIX-$METHOD-hierarchy-subdivisionStats.log \
|
---|
93 | -hierarchy_construction_type=0 \
|
---|
94 | -hierarchy_construction_consider_memory=false \
|
---|
95 | -vsp_use_cost_heuristics=$USE_HEUR \
|
---|
96 | -bvh_term_max_leaves=$NODES
|
---|
97 |
|
---|
98 | sh movefiles.sh $LOG_PREFIX-$METHOD |
---|