diff --git a/src/frame/capturer/wayland.rs b/src/frame/capturer/wayland.rs index eb75241..ddb5955 100644 --- a/src/frame/capturer/wayland.rs +++ b/src/frame/capturer/wayland.rs @@ -453,9 +453,6 @@ impl Dispatch for Capturer { } zwlr_screencopy_frame_v1::Event::Ready { .. } => { - // The frame is sadly not always ready at this stage, and I couldn't find how to make Vulkan synchronize with the compositor ☹️ - // thread::sleep(Duration::from_millis(10)); - let luma = state .vulkan .as_ref() diff --git a/src/frame/vulkan.rs b/src/frame/vulkan.rs index c1af843..ff78f17 100644 --- a/src/frame/vulkan.rs +++ b/src/frame/vulkan.rs @@ -260,10 +260,6 @@ impl Vulkan { let result = compute_perceived_lightness_percent(rgbas, true, pixels); - if result == 0 { - log::warn!("Perceived lightness is 0, this could be a bug I'm trying to catch. If you see this value while your screen is not pitch-black, please open a GitHub issue (or use an already opened one) and share your logs, ideally with RUST_LOG=trace and this message."); - } - unsafe { self.device.unmap_memory(self.buffer_memory); self.device.destroy_image(frame_image, None);