-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This implements background for the layouts. This is a lot more involved than what it would seem. Part of it is a huge refactoring that changes all layout states to be truly absolute. Previously they only included image changes whenever an image changes. We did this because we didn't want to serialize all the image data on every single frame. The new approach is to have a cache for the images and only serialize the image IDs. The image IDs are SHA-256 hashes, which allow deduplicating the images as well.
- Loading branch information
Showing
89 changed files
with
2,365 additions
and
2,129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ version = "0.13.0" | |
authors = ["Christopher Serr <[email protected]>"] | ||
documentation = "https://docs.rs/livesplit-core/" | ||
repository = "https://github.com/LiveSplit/livesplit-core" | ||
license = "Apache-2.0/MIT" | ||
license = "MIT OR Apache-2.0" | ||
description = "livesplit-core is a library that provides a lot of functionality for creating a speedrun timer." | ||
readme = "README.md" | ||
keywords = ["speedrun", "timer", "livesplit", "gaming"] | ||
|
@@ -47,14 +47,16 @@ libm = "0.2.1" | |
livesplit-hotkey = { path = "crates/livesplit-hotkey", version = "0.7.0", default-features = false } | ||
livesplit-title-abbreviations = { path = "crates/livesplit-title-abbreviations", version = "0.3.0" } | ||
memchr = { version = "2.3.4", default-features = false } | ||
simdutf8 = { version = "0.1.4", default-features = false, features = [ | ||
simdutf8 = { git = "https://github.com/CryZe/simdutf8", branch = "wasm-ub-panic", default-features = false, features = [ | ||
"aarch64_neon", | ||
] } | ||
serde = { version = "1.0.186", default-features = false, features = ["alloc"] } | ||
serde_derive = { version = "1.0.186", default_features = false } | ||
serde_json = { version = "1.0.60", default-features = false, features = [ | ||
"alloc", | ||
] } | ||
sha2 = { version = "0.10.8", default-features = false } | ||
slab = { version = "0.4.9", default-features = false } | ||
smallstr = { version = "0.3.0", default-features = false } | ||
snafu = { version = "0.8.0", default-features = false } | ||
unicase = "2.6.0" | ||
|
@@ -135,6 +137,8 @@ std = [ | |
"cosmic-text?/std", | ||
"serde_json/std", | ||
"serde/std", | ||
"sha2/std", | ||
"slab/std", | ||
"simdutf8/std", | ||
"snafu/std", | ||
"time/local-offset", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.