From 39adc8590e0806767b1498d3e025409688b301f0 Mon Sep 17 00:00:00 2001 From: AzureMarker Date: Tue, 1 Feb 2022 18:30:49 -0800 Subject: [PATCH] Enable the system core by setting our time limit percentage --- ctru-rs/examples/futures-basic.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ctru-rs/examples/futures-basic.rs b/ctru-rs/examples/futures-basic.rs index 77d20ca..c48964b 100644 --- a/ctru-rs/examples/futures-basic.rs +++ b/ctru-rs/examples/futures-basic.rs @@ -18,6 +18,10 @@ fn main() { let apt = Apt::init().expect("Couldn't obtain APT controller"); let _console = Console::init(gfx.top_screen.borrow_mut()); + // Give ourselves up to 30% of the system core's time + apt.set_app_cpu_time_limit(30) + .expect("Failed to enable system core"); + println!("Starting executor..."); let (exit_sender, mut exit_receiver) = futures::channel::oneshot::channel();