diff options
author | metamuffin <metamuffin@disroot.org> | 2025-01-18 00:57:22 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-01-18 00:57:22 +0100 |
commit | 6703f1c56605ca7dca8f7fe87b79badb764bd461 (patch) | |
tree | e2cb0863c3a844b20cfcb6ae1ab987a7f7ab0a6a /client/src/ui.rs | |
parent | f5ffcaf01b91daf0019dd6534b035398fa51f2f0 (diff) | |
download | weareserver-6703f1c56605ca7dca8f7fe87b79badb764bd461.tar weareserver-6703f1c56605ca7dca8f7fe87b79badb764bd461.tar.bz2 weareserver-6703f1c56605ca7dca8f7fe87b79badb764bd461.tar.zst |
profiler interface
Diffstat (limited to 'client/src/ui.rs')
-rw-r--r-- | client/src/ui.rs | 8 |
1 files changed, 4 insertions, 4 deletions
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::<f32>() * surf.index_capacity) as u64, + size: (size_of::<u32>() * 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::<f32>() * surf.vertex_capacity) as u64, + size: (size_of::<Vertex>() * surf.vertex_capacity) as u64, usage: BufferUsages::VERTEX | BufferUsages::COPY_DST, mapped_at_creation: false, }); |