From b84e9dfb8b710fec5a0922eaafee89a67eef227c Mon Sep 17 00:00:00 2001 From: Kaz Wesley Date: Tue, 18 Apr 2023 14:00:18 +0000 Subject: [PATCH 1/2] Disable buffer compaction --- lib/rust/ensogl/core/src/system/gpu/data/attribute.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/rust/ensogl/core/src/system/gpu/data/attribute.rs b/lib/rust/ensogl/core/src/system/gpu/data/attribute.rs index 6b71a776d996..3d98c605f910 100644 --- a/lib/rust/ensogl/core/src/system/gpu/data/attribute.rs +++ b/lib/rust/ensogl/core/src/system/gpu/data/attribute.rs @@ -218,7 +218,8 @@ impl { pub fn update(&mut self) { debug_span!("Updating.").in_scope(|| { if self.used_size * 2 < self.size() { - self.shrink_to_fit(); + // FIXME + //self.shrink_to_fit(); } if self.shape_dirty.check() { for i in 0..self.buffers.len() { From e7e14d4c3a7ada4adc7132582855bbad38603d99 Mon Sep 17 00:00:00 2001 From: Kaz Wesley Date: Tue, 18 Apr 2023 14:14:49 +0000 Subject: [PATCH 2/2] Reference bug --- lib/rust/ensogl/core/src/system/gpu/data/attribute.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rust/ensogl/core/src/system/gpu/data/attribute.rs b/lib/rust/ensogl/core/src/system/gpu/data/attribute.rs index 3d98c605f910..46e64a9d526b 100644 --- a/lib/rust/ensogl/core/src/system/gpu/data/attribute.rs +++ b/lib/rust/ensogl/core/src/system/gpu/data/attribute.rs @@ -218,7 +218,7 @@ impl { pub fn update(&mut self) { debug_span!("Updating.").in_scope(|| { if self.used_size * 2 < self.size() { - // FIXME + // FIXME (#6340) //self.shrink_to_fit(); } if self.shape_dirty.check() {