From 78912c8f1bfd27cc34678e7d7c0edf27e4f0bbfd Mon Sep 17 00:00:00 2001 From: Nova Date: Fri, 26 Jul 2024 06:32:36 -0400 Subject: [PATCH] fix: vram issues --- src/main.rs | 1 - src/wayland/mod.rs | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index cf81557..20cc4ad 100644 --- a/src/main.rs +++ b/src/main.rs @@ -187,7 +187,6 @@ fn stereokit_loop( .overlay_priority(args.overlay_priority.unwrap_or(u32::MAX)) .disable_desktop_input_window(true) .origin(OriginMode::Local) - .render_scaling(2.0) .init() .expect("StereoKit failed to initialize"); info!("Init StereoKit"); diff --git a/src/wayland/mod.rs b/src/wayland/mod.rs index 1531d24..f129787 100644 --- a/src/wayland/mod.rs +++ b/src/wayland/mod.rs @@ -17,7 +17,7 @@ use parking_lot::Mutex; use smithay::backend::allocator::dmabuf::Dmabuf; use smithay::backend::egl::EGLContext; use smithay::backend::renderer::gles::GlesRenderer; -use smithay::backend::renderer::ImportDma; +use smithay::backend::renderer::{ImportDma, Renderer}; use smithay::output::Output; use smithay::reexports::wayland_server::backend::ClientId; use smithay::reexports::wayland_server::DisplayHandle; @@ -195,6 +195,7 @@ impl Wayland { for core_surface in CORE_SURFACES.get_valid_contents() { core_surface.process(&mut self.renderer); } + let _ = self.renderer.cleanup_texture_cache(); self.display.flush_clients(None); }