summaryrefslogtreecommitdiff
path: root/client/src/ui.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-01-23 21:42:04 +0100
committermetamuffin <metamuffin@disroot.org>2025-01-23 21:42:04 +0100
commitdd40803458695abcd4100fffb874cc25a71ea758 (patch)
tree2ac174eb7d6c6414d32740b7f067b5c821ece176 /client/src/ui.rs
parent25280332af8dce146295b2dcb48c044c45a92eba (diff)
downloadweareserver-dd40803458695abcd4100fffb874cc25a71ea758.tar
weareserver-dd40803458695abcd4100fffb874cc25a71ea758.tar.bz2
weareserver-dd40803458695abcd4100fffb874cc25a71ea758.tar.zst
anisotropic texture filtering
Diffstat (limited to 'client/src/ui.rs')
-rw-r--r--client/src/ui.rs14
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);
}