diff options
Diffstat (limited to 'client/src/ui.rs')
-rw-r--r-- | client/src/ui.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/client/src/ui.rs b/client/src/ui.rs index 78ca29d..fd94dfb 100644 --- a/client/src/ui.rs +++ b/client/src/ui.rs @@ -20,7 +20,7 @@ use egui::{ epaint::{ImageDelta, Primitive, Vertex}, }; use glam::{Affine3A, Mat2, Mat3, Mat4, Vec2, Vec3, Vec3Swizzles, Vec4Swizzles, vec2, vec4}; -use log::{info, warn}; +use log::{debug, warn}; use rand::random; use std::{ collections::HashMap, @@ -180,7 +180,7 @@ impl UiRenderer { mapped_at_creation: false, }); let id = ViewportId::from_hash_of(random::<u128>()); - info!("ui surface added: {id:?}"); + debug!("ui surface added: {id:?}"); self.surfaces.write().unwrap().insert(id, UiSurface { transform, content: Arc::new(content), @@ -206,7 +206,7 @@ impl UiRenderer { if let Some((_texbg, tex, texsize)) = textures.get_mut(&texid) { let pos = delta.pos.unwrap_or([0, 0]); - info!("updating UI texture at {pos:?}"); + debug!("updating UI texture at {pos:?}"); self.queue.write_texture( ImageCopyTexture { texture: &tex, @@ -231,7 +231,7 @@ impl UiRenderer { delta.pos, None, "partial update impossible; texture does not yet exist" ); - info!( + debug!( "uploading new UI texture: width={}, height={}", delta.image.width(), delta.image.height() @@ -432,7 +432,7 @@ impl UiRenderer { } while index_count > surf.index_capacity { - info!( + debug!( "index buffer overflow ({index_count}). expanding {} -> {}", surf.index_capacity, surf.index_capacity * 2 @@ -446,7 +446,7 @@ impl UiRenderer { }); } while vertex_count > surf.vertex_capacity { - info!( + debug!( "vertex buffer overflow ({vertex_count}). expanding {} -> {}", surf.vertex_capacity, surf.vertex_capacity * 2 @@ -514,7 +514,7 @@ impl UiRenderer { } } for s in surfaces_closed { - info!("ui surface closed: {s:?}"); + debug!("ui surface closed: {s:?}"); surfaces.remove(&s); } |