From 2497ef2585cecc4cc79621d5ac65484e89d02fa8 Mon Sep 17 00:00:00 2001
From: Ben Bridle <ben@derelict.engineering>
Date: Mon, 16 Dec 2024 16:08:06 +1300
Subject: Increase cycles evaluated at a time to 65536

Evaluating a greater number of cycles at a time reduces the overhead
caused by the Bedrock instance management code.
---
 arm9/source/core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arm9/source/core.c b/arm9/source/core.c
index 8abcfcb..26c7bb0 100644
--- a/arm9/source/core.c
+++ b/arm9/source/core.c
@@ -19,7 +19,7 @@ void start_br(Bedrock *br, u8 program[], int size) {
 
 void run_br(Bedrock *br) {
     if (br->awake) {
-        switch (evaluate(br, 1000)) {
+        switch (evaluate(br, 65535)) {
         case SIG_HALT:   br->alive = FALSE; black_screen(br->scr.nds); br = NULL; return;
         case SIG_SLEEP:  br->awake = FALSE;            return;
         case SIG_DB1:     debug_stacks(br);            return;
-- 
cgit v1.2.3-70-g09d2