diff options
author | ExpoSeed <43502820+ExpoSeed@users.noreply.github.com> | 2021-01-26 14:24:24 -0600 |
---|---|---|
committer | ExpoSeed <43502820+ExpoSeed@users.noreply.github.com> | 2021-01-26 14:24:24 -0600 |
commit | 8a2a34d7a8e2f7debcac513d89b2001c8a637bcc (patch) | |
tree | 405099eaeb9b6f50f39d18138d5bcabb84b4b5f1 | |
parent | f26e64f3ba2082593ece5e8aea29e19ba90a4bf0 (diff) |
Updated Improving the WaitForVBlank function (markdown)
-rw-r--r-- | Improving-the-WaitForVBlank-function.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Improving-the-WaitForVBlank-function.md b/Improving-the-WaitForVBlank-function.md index ef28091..d35eca9 100644 --- a/Improving-the-WaitForVBlank-function.md +++ b/Improving-the-WaitForVBlank-function.md @@ -8,7 +8,7 @@ In Emerald, Gamefreak used a `while` loop that kept on checking for VBlank over The correct way to vsync is to use a [software interrupt/BIOS call](https://www.coranac.com/tonc/text/swi.htm#sec-vsync2). In short, we put the CPU in low power mode while we wait for the next VBlank, and on the next VBlank the CPU comes back to life. -The easiest way to do so, is by copying and pasting the function directly from Ruby and Sapphire, which means modifying the function like this: +The easiest way to do so, is by copying and pasting the function directly from Ruby and Sapphire, which means modifying the function in `src/main.c` like this: ```diff static void WaitForVBlank(void) |