Force 5 fps drawing, bump version to 0.2.8
This commit is contained in:
parent
cef1ae1aee
commit
91e0dfb5b8
4 changed files with 5 additions and 5 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -1427,7 +1427,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "mpd_info_screen"
|
||||
version = "0.2.7"
|
||||
version = "0.2.8"
|
||||
dependencies = [
|
||||
"ggez",
|
||||
"image",
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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]
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue