From d3c7b397a43c367afeedcaed2e3629b305088de4 Mon Sep 17 00:00:00 2001 From: JMS55 <47158642+JMS55@users.noreply.github.com> Date: Sun, 29 Oct 2023 18:18:38 -0700 Subject: [PATCH] Add TODO --- crates/bevy_pbr/src/meshlet/from_mesh.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/bevy_pbr/src/meshlet/from_mesh.rs b/crates/bevy_pbr/src/meshlet/from_mesh.rs index c74bfbcc4b784..1d70c51b01da5 100644 --- a/crates/bevy_pbr/src/meshlet/from_mesh.rs +++ b/crates/bevy_pbr/src/meshlet/from_mesh.rs @@ -38,6 +38,7 @@ impl MeshletMesh { let mut meshlets = build_meshlets(&indices, &vertices, 126, 64, 0.0); + // TODO: Parallelize let meshlet_bounding_spheres = meshlets .iter() .map(|meshlet| { @@ -55,7 +56,7 @@ impl MeshletMesh { }) .collect(); - // TODO: Meshoptimzer seems to pad the buffers themselves? + // TODO: Meshoptimizer seems to pad the buffers themselves? // Buffer copies need to be in multiples of 4 bytes let padding = ((meshlets.triangles.len() + 3) & !0x3) - meshlets.triangles.len(); meshlets.triangles.extend(iter::repeat(0).take(padding));