From 6703f1c56605ca7dca8f7fe87b79badb764bd461 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sat, 18 Jan 2025 00:57:22 +0100 Subject: profiler interface --- client/src/ui.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'client/src/ui.rs') diff --git a/client/src/ui.rs b/client/src/ui.rs index c477d07..6f41ea6 100644 --- a/client/src/ui.rs +++ b/client/src/ui.rs @@ -427,28 +427,28 @@ impl UiRenderer { while index_count > surf.index_capacity { info!( - "index buffer overflow. expanding {} -> {}", + "index buffer overflow ({index_count}). expanding {} -> {}", surf.index_capacity, surf.index_capacity * 2 ); surf.index_capacity *= 2; surf.index = self.device.create_buffer(&BufferDescriptor { label: None, - size: (size_of::() * surf.index_capacity) as u64, + size: (size_of::() * surf.index_capacity) as u64, usage: BufferUsages::INDEX | BufferUsages::COPY_DST, mapped_at_creation: false, }); } while vertex_count > surf.vertex_capacity { info!( - "vertex buffer overflow. expanding {} -> {}", + "vertex buffer overflow ({vertex_count}). expanding {} -> {}", surf.vertex_capacity, surf.vertex_capacity * 2 ); surf.vertex_capacity *= 2; surf.vertex = self.device.create_buffer(&BufferDescriptor { label: None, - size: (size_of::() * surf.vertex_capacity) as u64, + size: (size_of::() * surf.vertex_capacity) as u64, usage: BufferUsages::VERTEX | BufferUsages::COPY_DST, mapped_at_creation: false, }); -- cgit v1.2.3-70-g09d2