From d38e7ffc817c19c82cfc4bba9ae7e7a4a4378ee8 Mon Sep 17 00:00:00 2001 From: Deokishisu <6993375+Deokishisu@users.noreply.github.com> Date: Fri, 22 Dec 2023 01:52:24 -0500 Subject: [PATCH] Updated Improving the WaitForVBlank function (markdown) --- Improving-the-WaitForVBlank-function.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Improving-the-WaitForVBlank-function.md b/Improving-the-WaitForVBlank-function.md index a8bf68f..d119236 100644 --- a/Improving-the-WaitForVBlank-function.md +++ b/Improving-the-WaitForVBlank-function.md @@ -56,4 +56,4 @@ static void WaitForVBlank(void) } ``` -The less-efficient `WaitForVBlank` will now only run while the Wireless Adapter is communicating. This has been written so that, during normal gameplay, you won't lose performance due to an extra jump as the comparison follows right into setting the `swi` and then the function exits immediately afterwards. The only loss over the above two versions are the cycles needed to perform the comparison. The code jumps only while the Wireless Adapter is communicating, but the busy loop tanks performance in that scenario anyway so the cost is negligible. \ No newline at end of file +The less-efficient `WaitForVBlank` will now only run while the Wireless Adapter is communicating. This has been written so that, during normal gameplay, performance losses over the above two versions are as minimized as possible. You won't lose performance due to an extra jump as the comparison follows right into setting the `swi` and then the function exits immediately afterwards. The only loss over the above two versions are the cycles needed to perform the comparison. The code jumps only while the Wireless Adapter is communicating, but the busy loop tanks performance in that scenario anyway so the cost is negligible. \ No newline at end of file