From 91e0dfb5b8caf8c533ec57014efbc418230a32b1 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Fri, 7 Jan 2022 15:34:17 +0900 Subject: [PATCH] Force 5 fps drawing, bump version to 0.2.8 --- Cargo.lock | 2 +- Cargo.toml | 2 +- README.md | 2 +- src/main.rs | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 7fbe084..3cef8d0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1427,7 +1427,7 @@ dependencies = [ [[package]] name = "mpd_info_screen" -version = "0.2.7" +version = "0.2.8" dependencies = [ "ggez", "image", diff --git a/Cargo.toml b/Cargo.toml index ed7195f..0e6fc00 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mpd_info_screen" -version = "0.2.7" +version = "0.2.8" edition = "2018" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/README.md b/README.md index 621c75f..bdb3d88 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ counter, and the filename currently being played # Usage - mpd_info_screen 0.2.7 + mpd_info_screen 0.2.8 USAGE: mpd_info_screen [FLAGS] [OPTIONS] [port] diff --git a/src/main.rs b/src/main.rs index acfbee7..07dceaa 100644 --- a/src/main.rs +++ b/src/main.rs @@ -142,8 +142,8 @@ fn main() -> Result<(), String> { ctx.mouse_context.reset_delta(); - // sleep to force 10-11 fps - thread::sleep(Duration::from_millis(90)); + // sleep to force ~5 fps + thread::sleep(Duration::from_millis(200)); ggez::timer::yield_now(); } x => log(