From aedef03e7c003a56b5c28c6f46605ee508edbc25 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Wed, 4 Oct 2023 22:21:05 -0700 Subject: [PATCH] this adds lag and is unnecessary --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.rs b/src/main.rs index cfed4371..cb79127c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1057,6 +1057,7 @@ impl framework::Example for GlobalState { ) .copy_from_slice(bytemuck::cast_slice(&camera_uniforms)); //This code only needs to run when the uniforms change + /* for model in self.graphics.models.iter() { let model_uniforms = get_instances_buffer_data(&model.instances); self.graphics.staging_belt @@ -1069,6 +1070,7 @@ impl framework::Example for GlobalState { ) .copy_from_slice(bytemuck::cast_slice(&model_uniforms)); } + */ self.graphics.staging_belt.finish(); {