Force 5 fps drawing, bump version to 0.2.8

This commit is contained in:
Stephen Seo 2022-01-07 15:34:17 +09:00
parent cef1ae1aee
commit 91e0dfb5b8
4 changed files with 5 additions and 5 deletions

2
Cargo.lock generated
View file

@ -1427,7 +1427,7 @@ dependencies = [
[[package]]
name = "mpd_info_screen"
version = "0.2.7"
version = "0.2.8"
dependencies = [
"ggez",
"image",

View file

@ -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

View file

@ -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] <host> [port]

View file

@ -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(