From e6b74a3ae09700ac72d169433fdfb74314d26bbf Mon Sep 17 00:00:00 2001 From: Lua MacDougall Date: Thu, 12 May 2022 14:44:03 -0700 Subject: [PATCH] fox32: use resume with high count for core runtime, update release --- Cargo.toml | 4 ++++ src/runtime.rs | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 4fb25ab..5fdd4db 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,3 +20,7 @@ winit_input_helper = "0.11" [build-dependencies] anyhow = "1.0" vergen = { version = "6", default-features = false, features = ["build", "git"] } + +[profile.release] +opt-level = 3 +lto = "fat" diff --git a/src/runtime.rs b/src/runtime.rs index d75190c..411e3a0 100644 --- a/src/runtime.rs +++ b/src/runtime.rs @@ -61,7 +61,7 @@ impl Runtime for fox32core::State { } fn step(&mut self) { - if let Some(error) = fox32core::State::step(self) { + if let Some(error) = fox32core::State::resume(self, 8192) { panic!("fox32core failed to execute next instruction: {}", error); } }