Skip to content

Commit adbd1a4

Browse files
committed
add an option to limit to only runs starting from just the initial state, but dont use it because it cuts down to almost 1% of runs and still doesnt actually prevent a lot of teleporting around the map.
1 parent 724c02a commit adbd1a4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

large-scale-viz/high_perf_character_render/src/bin/extract_compact_runs.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,9 @@ fn main() -> Result<()> {
191191
let dx = current_global_pos[0] - previous_global_pos[0];
192192
let dy = current_global_pos[1] - previous_global_pos[1];
193193
let global_step_delta = (dx*dx + dy*dy).sqrt();
194-
let early_big_jump_fail = args.pallet_start_only && (j as i64 - run_start as i64) < 140 && global_step_delta > 30.0;
194+
let step_count = j as i64 - run_start as i64;
195+
let exact_start_compatible = true;//step_count > 1 || (previous_coord[0] == 5 && previous_coord[1] == 3 && previous_coord[2] == 40);
196+
let early_big_jump_fail = args.pallet_start_only && (!exact_start_compatible || (step_count < 140 && global_step_delta > 30.0));
195197
///////////////
196198

197199
let should_split = time_gap >= gap_threshold || early_big_jump_fail

0 commit comments

Comments
 (0)