Revert profile settings to stop GUI from making it crash
This commit is contained in:
parent
9d4422df73
commit
26c213043f
|
|
@ -104,44 +104,16 @@ debug = true
|
|||
[profile.dev.package.esp-storage]
|
||||
opt-level = 3
|
||||
|
||||
# btuuid fails to compile with `opt-level = "s"`
|
||||
[profile.dev.package.btuuid]
|
||||
opt-level = 0
|
||||
|
||||
# Optimize dependencies
|
||||
[profile.dev.package."*"]
|
||||
opt-level = 3
|
||||
|
||||
# [profile.dev.package.xtensa-lx]
|
||||
# opt-level = 0
|
||||
|
||||
# [profile.dev.package.esp-sync]
|
||||
# opt-level = 0
|
||||
|
||||
# [profile.dev.package.esp-alloc]
|
||||
# opt-level = 0
|
||||
|
||||
[profile.dev]
|
||||
# Rust debug is too slow.
|
||||
# For debug builds always builds with some optimization
|
||||
# opt-level = "s"
|
||||
opt-level = 0
|
||||
lto = false
|
||||
|
||||
[profile.release.package."*"]
|
||||
opt-level = 3
|
||||
|
||||
# btuuid fails to compile with `opt-level = "3"`
|
||||
[profile.release.package.btuuid]
|
||||
opt-level = 0
|
||||
opt-level = "s"
|
||||
|
||||
[profile.release]
|
||||
codegen-units = 1 # LLVM can perform better optimizations using a single thread
|
||||
debug = 2
|
||||
debug-assertions = false
|
||||
incremental = false
|
||||
# lto = 'thin'
|
||||
lto = false
|
||||
# opt-level = 3
|
||||
opt-level = 0
|
||||
lto = 'thin'
|
||||
opt-level = 3
|
||||
overflow-checks = false
|
||||
|
|
|
|||
|
|
@ -651,14 +651,6 @@ impl Controller for UserController {
|
|||
|
||||
#[embassy_executor::task]
|
||||
async fn run_renderer_task(backend: SlintBackend) {
|
||||
// TODO: Disable rendering because it causes crashes in allocation
|
||||
loop {
|
||||
SIGNAL_LCD_SUBMIT.signal(());
|
||||
#[cfg(feature = "limit-fps")]
|
||||
embassy_time::Timer::after(FRAME_DURATION_MIN).await;
|
||||
SIGNAL_UI_RENDER.wait().await;
|
||||
}
|
||||
|
||||
slint::platform::set_platform(Box::new(backend)).expect("backend already initialized");
|
||||
|
||||
let main = AppWindow::new().unwrap();
|
||||
|
|
|
|||
Loading…
Reference in a new issue