Shadows, self and nearby craft

This commit is contained in:
connor committed 2026-10-14 20:34:12 -04:00
1 parent e77d68d0a6
commit 33f986044c
14 files changed
+1273 -37

No files matched your search

+3 -1
View File
@@ -156,6 +156,7 @@ fn render(args: &RenderArgs) -> Result<(), String> {
appearance: file.appearance(),
read_radiance: false,
profile: timings.is_some(),
shadow_map_size: None,
};
let start = Instant::now();
let mut renderer = Renderer::new(camera, options).map_err(|e| e.to_string())?;
@@ -217,7 +218,8 @@ fn render(args: &RenderArgs) -> Result<(), String> {
v[v.len() / 2]
};
println!(
"gpu bodies {:.3} ms, mesh {:.3} ms, sensor {:.3} ms, first to last {:.3} ms (medians)",
"gpu shadow {:.3} ms, bodies {:.3} ms, mesh {:.3} ms, sensor {:.3} ms, first to last {:.3} ms (medians)",
median(|t| t.shadow),
median(|t| t.bodies),
median(|t| t.mesh),
median(|t| t.sensor),