Skip to content

Commit 4dce6cf

Browse files
committed
tiles interp dist 3, crf 12, no warn on unknown map id
1 parent 3432aee commit 4dce6cf

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,12 +184,12 @@ async fn run() -> Result<()> {
184184
continue;
185185
}
186186

187-
// Check pixel distance - only interpolate if moving <= 4*16 pixels (4 tiles)
187+
// Check pixel distance - only interpolate if moving <= 3*16 pixels (3 tiles)
188188
let pixel_dx = (next_pos[0] - current_pos[0]).abs();
189189
let pixel_dy = (next_pos[1] - current_pos[1]).abs();
190-
let pixel_distance = pixel_dx.max(pixel_dy);
190+
let pixel_distance = pixel_dx + pixel_dy;
191191

192-
let should_interpolate = pixel_distance <= 4.0 * 16.0;
192+
let should_interpolate = pixel_distance <= 3.0 * 16.0;
193193
let interp_t = if should_interpolate { interpolation_t } else { 0.0 };
194194

195195
// Interpolate position

large-scale-viz/high_perf_character_render/src/data/coordinate_mapper.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ impl CoordinateMapper {
7272

7373
[x, y]
7474
} else {
75-
log::warn!("No map coordinate location for id: {}", map_region_id);
75+
log::debug!("No map coordinate location for id: {}", map_region_id);
7676
INVALID_MAP_ID_FLAG // invalid for example 255 is seen sometimes
7777
}
7878
}

large-scale-viz/high_perf_character_render/src/video/encoder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ impl ProResEncoder {
5050
"-i", "pipe:0",
5151
"-c:v", "libx264",
5252
"-preset", "slow",
53-
"-crf", "15", // Near-lossless quality (comparable to ProRes 4444)
53+
"-crf", "12", // Near-lossless quality (comparable to ProRes 4444)
5454
"-pix_fmt", "yuv444p", // 4:4:4 chroma subsampling for max quality
5555
"-threads", "8",
5656
rgb_path.to_str().unwrap(),

0 commit comments

Comments
 (0)