fix: vram issues
This commit is contained in:
@@ -187,7 +187,6 @@ fn stereokit_loop(
|
|||||||
.overlay_priority(args.overlay_priority.unwrap_or(u32::MAX))
|
.overlay_priority(args.overlay_priority.unwrap_or(u32::MAX))
|
||||||
.disable_desktop_input_window(true)
|
.disable_desktop_input_window(true)
|
||||||
.origin(OriginMode::Local)
|
.origin(OriginMode::Local)
|
||||||
.render_scaling(2.0)
|
|
||||||
.init()
|
.init()
|
||||||
.expect("StereoKit failed to initialize");
|
.expect("StereoKit failed to initialize");
|
||||||
info!("Init StereoKit");
|
info!("Init StereoKit");
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ use parking_lot::Mutex;
|
|||||||
use smithay::backend::allocator::dmabuf::Dmabuf;
|
use smithay::backend::allocator::dmabuf::Dmabuf;
|
||||||
use smithay::backend::egl::EGLContext;
|
use smithay::backend::egl::EGLContext;
|
||||||
use smithay::backend::renderer::gles::GlesRenderer;
|
use smithay::backend::renderer::gles::GlesRenderer;
|
||||||
use smithay::backend::renderer::ImportDma;
|
use smithay::backend::renderer::{ImportDma, Renderer};
|
||||||
use smithay::output::Output;
|
use smithay::output::Output;
|
||||||
use smithay::reexports::wayland_server::backend::ClientId;
|
use smithay::reexports::wayland_server::backend::ClientId;
|
||||||
use smithay::reexports::wayland_server::DisplayHandle;
|
use smithay::reexports::wayland_server::DisplayHandle;
|
||||||
@@ -195,6 +195,7 @@ impl Wayland {
|
|||||||
for core_surface in CORE_SURFACES.get_valid_contents() {
|
for core_surface in CORE_SURFACES.get_valid_contents() {
|
||||||
core_surface.process(&mut self.renderer);
|
core_surface.process(&mut self.renderer);
|
||||||
}
|
}
|
||||||
|
let _ = self.renderer.cleanup_texture_cache();
|
||||||
|
|
||||||
self.display.flush_clients(None);
|
self.display.flush_clients(None);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user