memory fixes

This commit is contained in:
Thuc Chi Do
2025-08-11 05:50:48 -04:00
parent 4c93b9b726
commit 0502cffff9

View File

@@ -120,8 +120,6 @@ int main(int argc, char* argv[])
while (aptMainLoop()) while (aptMainLoop())
{ {
hidScanInput(); hidScanInput();
gspWaitForVBlank();
gfxSwapBuffers();
// Your code goes here // Your code goes here
u32 kDown = hidKeysDown(); u32 kDown = hidKeysDown();
@@ -137,8 +135,13 @@ int main(int argc, char* argv[])
gfxSet3D(false); gfxSet3D(false);
writePicToFBuff(gfxGetFramebuffer(GFX_TOP, GFX_LEFT, NULL, NULL), buf, 0, 0); writePicToFBuff(gfxGetFramebuffer(GFX_TOP, GFX_LEFT, NULL, NULL), buf, 0, 0);
gfxFlushBuffers();
gspWaitForVBlank();
gfxSwapBuffers();
} }
free(buf);
gfxExit(); gfxExit();
return 0; return 0;
} }