diff options
author | Ben Bridle <ben@derelict.engineering> | 2024-12-16 16:08:06 +1300 |
---|---|---|
committer | Ben Bridle <ben@derelict.engineering> | 2024-12-16 16:08:06 +1300 |
commit | 2497ef2585cecc4cc79621d5ac65484e89d02fa8 (patch) | |
tree | 65b22ea6444e2cf9e6afa4a75d8dcd7ca8b582b8 | |
parent | 1742d8f72430b1b7a45a4c39844ef0e76d7a642a (diff) | |
download | bedrock-nds-2497ef2585cecc4cc79621d5ac65484e89d02fa8.zip |
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.
-rw-r--r-- | arm9/source/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |