From e3234e620e8a6f64088ac66654a214b9f3d082ce Mon Sep 17 00:00:00 2001 From: NiiightmareXD Date: Fri, 10 Nov 2023 13:42:53 -0800 Subject: [PATCH] =?UTF-8?q?Bug=20Fix=20=F0=9F=94=A5=20=09modified:=20=20?= =?UTF-8?q?=20Cargo.lock=20=09modified:=20=20=20Cargo.toml=20=09modified:?= =?UTF-8?q?=20=20=20README.md=20=09modified:=20=20=20src/graphics=5Fcaptur?= =?UTF-8?q?e=5Fapi.rs=20=09modified:=20=20=20src/lib.rs=20=09modified:=20?= =?UTF-8?q?=20=20windows-capture-python/Cargo.toml=20=09modified:=20=20=20?= =?UTF-8?q?windows-capture-python/pyproject.toml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Cargo.lock | 4 ++-- Cargo.toml | 2 +- README.md | 2 +- src/graphics_capture_api.rs | 4 ---- src/lib.rs | 2 +- windows-capture-python/Cargo.toml | 2 +- windows-capture-python/pyproject.toml | 2 +- 7 files changed, 7 insertions(+), 11 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 7fabe89..69b3e78 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -603,7 +603,7 @@ dependencies = [ [[package]] name = "windows-capture" -version = "1.0.27" +version = "1.0.28" dependencies = [ "image", "log", @@ -615,7 +615,7 @@ dependencies = [ [[package]] name = "windows-capture-python" -version = "1.0.27" +version = "1.0.28" dependencies = [ "log", "pyo3", diff --git a/Cargo.toml b/Cargo.toml index c5ac838..f253bf2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "windows-capture" -version = "1.0.27" +version = "1.0.28" authors = ["NiiightmareXD"] edition = "2021" description = "Fastest Windows Screen Capture Library For Rust 🔥" diff --git a/README.md b/README.md index da6a593..d743967 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ Add this library to your `Cargo.toml`: ```toml [dependencies] -windows-capture = "1.0.27" +windows-capture = "1.0.28" ``` or run this command diff --git a/src/graphics_capture_api.rs b/src/graphics_capture_api.rs index d693a7a..e35d189 100644 --- a/src/graphics_capture_api.rs +++ b/src/graphics_capture_api.rs @@ -5,7 +5,6 @@ use std::{ atomic::{self, AtomicBool}, Arc, }, - time::Instant, }; use log::{info, trace}; @@ -168,8 +167,6 @@ impl GraphicsCaptureApi { let direct3d_device_recreate = SendDirectX::new(direct3d_device.clone()); move |frame, _| { - let instant = Instant::now(); - // Return Early If The Capture Is Closed if closed_frame_pool.load(atomic::Ordering::Relaxed) { return Ok(()); @@ -295,7 +292,6 @@ impl GraphicsCaptureApi { .expect("Failed To Replace RESULT"); } - println!("Took: {}", instant.elapsed().as_nanos() as f64 / 1000000.0); Result::Ok(()) } }), diff --git a/src/lib.rs b/src/lib.rs index a9f233d..1fbcdc0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -22,7 +22,7 @@ //! //! ```toml //! [dependencies] -//! windows-capture = "1.0.27" +//! windows-capture = "1.0.28" //! ``` //! or run this command //! diff --git a/windows-capture-python/Cargo.toml b/windows-capture-python/Cargo.toml index 064f6ff..6961e9b 100644 --- a/windows-capture-python/Cargo.toml +++ b/windows-capture-python/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "windows-capture-python" -version = "1.0.27" +version = "1.0.28" authors = ["NiiightmareXD"] edition = "2021" description = "Fastest Windows Screen Capture Library For Python 🔥" diff --git a/windows-capture-python/pyproject.toml b/windows-capture-python/pyproject.toml index 15c20b1..bbc3832 100644 --- a/windows-capture-python/pyproject.toml +++ b/windows-capture-python/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "maturin" [project] name = "windows-capture" -version = "1.0.27" +version = "1.0.28" description = "Fastest Windows Screen Capture Library For Python 🔥" readme = "README.md" requires-python = ">=3.9"