Skip to content

Commit

Permalink
Ignore occasional missed frames, since we ignore zero-luma anyway
Browse files Browse the repository at this point in the history
  • Loading branch information
maximbaz committed Oct 25, 2024
1 parent ba0fcc3 commit 62380e9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
3 changes: 0 additions & 3 deletions src/frame/capturer/wayland.rs
Original file line number Diff line number Diff line change
Expand Up @@ -453,9 +453,6 @@ impl Dispatch<ZwlrScreencopyFrameV1, ()> 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()
Expand Down
4 changes: 0 additions & 4 deletions src/frame/vulkan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 62380e9

Please sign in to comment.