From 5667a23c5fac2bbd8c5b8f25856db4afd512e232 Mon Sep 17 00:00:00 2001 From: RabbyDevs <67389402+RabbyDevs@users.noreply.github.com> Date: Sun, 4 May 2025 03:48:33 +0300 Subject: [PATCH] inhindsight the optimization shit was bad --- Cargo.toml | 25 ++++--------------------- src/main.rs | 3 ++- 2 files changed, 6 insertions(+), 22 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index c31d85b..bf3f6de 100644 --- a/Cargo.toml +++ b/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 \ No newline at end of file +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. \ No newline at end of file diff --git a/src/main.rs b/src/main.rs index b484a63..d0e1416 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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()) } }