inhindsight the optimization shit was bad
This commit is contained in:
parent
647599d2bc
commit
5667a23c5f
2 changed files with 6 additions and 22 deletions
25
Cargo.toml
25
Cargo.toml
|
@ -19,24 +19,7 @@ strum_macros = "0.27.1"
|
|||
reqwest = { version = "0.12.15", features = ["blocking", "gzip", "json"] }
|
||||
|
||||
[profile.release]
|
||||
strip = true # Automatically strip symbols from the binary
|
||||
lto = "fat" # More aggressive Link Time Optimization
|
||||
opt-level = 3 # Optimize for speed
|
||||
codegen-units = 1 # Maximum size reduction optimizations
|
||||
panic = "abort" # Remove panic unwinding code
|
||||
debug = false # No debug symbols
|
||||
overflow-checks = false # Disable runtime integer overflow checks
|
||||
rpath = false # Don't embed runtime search path
|
||||
|
||||
[profile.dev]
|
||||
opt-level = 0 # No optimizations for faster compilation
|
||||
debug = true # Full debug info
|
||||
debug-assertions = true # Enable debug assertions
|
||||
overflow-checks = true # Enable runtime integer overflow checks
|
||||
lto = false # Disable link-time optimization
|
||||
incremental = true # Enable incremental compilation
|
||||
codegen-units = 256 # Use many codegen units for parallel compilation
|
||||
split-debuginfo = "unpacked" # Faster debug builds on some platforms
|
||||
|
||||
[profile.dev.package."*"]
|
||||
opt-level = 0 # No optimization for most dependencies
|
||||
strip = true # Automatically strip symbols from the binary.
|
||||
lto = true # Link-time optimization.
|
||||
opt-level = 3 # Optimize for speed.
|
||||
codegen-units = 1 # Maximum size reduction optimizations.
|
|
@ -1,3 +1,4 @@
|
|||
// TODO: fix loading the save data lol
|
||||
#![windows_subsystem = "windows"]
|
||||
mod utils;
|
||||
mod components;
|
||||
|
@ -23,7 +24,7 @@ trait InterfaceImage {
|
|||
|
||||
impl InterfaceImage for DynamicImage {
|
||||
fn into_handle(self) -> image::Handle {
|
||||
image::Handle::from_rgba(self.width(), self.height(), self.to_rgba8().into_raw())
|
||||
image::Handle::from_rgba(self.width(), self.height(), self.to_rgb8().into_raw())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue