Skip to content

Commit

Permalink
fix(render): Drop page without main thread.
Browse files Browse the repository at this point in the history
  • Loading branch information
rsuu committed Mar 10, 2023
1 parent 74fa1ee commit 6403fe8
Show file tree
Hide file tree
Showing 8 changed files with 469 additions and 461 deletions.
146 changes: 101 additions & 45 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "rmg"
edition = "2021"
version= "0.5.7"
version="0.5.9"
authors = ["RSUU <[email protected]>"]
description = "Rust: Tiny And Fast Manga/Image Viewer"
homepage = "https://crates.io/crates/rmg"
Expand Down Expand Up @@ -55,7 +55,7 @@ gif-dispose = "4.0.0"
image = "0.24.5"

# window
minifb={version = "0.23.0",features = ["x11", "wayland"]}
minifb={version = "0.23.0",features = ["x11"],default-features = false}

# config
syn={version = "1.0.107",features = ["parsing", "extra-traits", "full"],default-features = false}
Expand All @@ -81,6 +81,7 @@ ex_tar = ["dep:zip"]
ex_zip = ["dep:tar"]
sse4_1 = []
avx2 = []
wayland=["minifb/wayland", "minifb/dlopen"]

[[bench]]
name = "bench_main"
Expand Down
5 changes: 5 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,14 @@ pub const FPS: u32 = 1000 / 25;
pub const EXT_LIST: &[&str] = &[
"jpg", "jpeg", "png", "heic", "heif", "avif", "ase", "aseprite", "gif", "svg",
];
pub const SLEEP_MS: u32 = 1000 / 120;

// ==========================================
pub mod archive;
pub mod config;
pub mod img;
pub mod render;

pub fn sleep() {
std::thread::sleep_ms(SLEEP_MS);
}
Loading

0 comments on commit 6403fe8

Please sign in to comment.