From 988f204358a1f11c6a20992b8e1bdb0bddb6b5d3 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Tue, 5 Sep 2023 18:51:53 -0700 Subject: [PATCH] comment on updating uniforms --- src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.rs b/src/main.rs index 9f971cf..09b37b6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -652,6 +652,7 @@ impl strafe_client::framework::Example for Skybox { device, ) .copy_from_slice(bytemuck::cast_slice(&camera_uniforms)); + //This code only needs to run when the uniforms change for model in self.models.iter() { let model_uniforms = get_transform_uniform_data(&model.transform); self.staging_belt