mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-23 05:12:39 +02:00
console: disable forced flush/swap/vblank due to performance reasons
This commit is contained in:
parent
52c0cee10c
commit
81d56a9e23
@ -123,9 +123,9 @@ static void consoleCls(char mode) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
gfxFlushBuffers();
|
//gfxFlushBuffers();
|
||||||
gfxSwapBuffers();
|
//gfxSwapBuffers();
|
||||||
gfxWaitForVsync();
|
//gfxWaitForVsync();
|
||||||
}
|
}
|
||||||
//---------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------
|
||||||
static void consoleClearLine(char mode) {
|
static void consoleClearLine(char mode) {
|
||||||
@ -178,9 +178,9 @@ static void consoleClearLine(char mode) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
gfxFlushBuffers();
|
//gfxFlushBuffers();
|
||||||
gfxSwapBuffers();
|
//gfxSwapBuffers();
|
||||||
gfxWaitForVsync();
|
//gfxWaitForVsync();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -558,9 +558,9 @@ PrintConsole* consoleInit(PrintConsole* console) {
|
|||||||
gfxSwapBuffers();
|
gfxSwapBuffers();
|
||||||
console->frameBuffer2 = (u32*)gfxGetFramebuffer(NULL, NULL);
|
console->frameBuffer2 = (u32*)gfxGetFramebuffer(NULL, NULL);
|
||||||
|
|
||||||
gfxFlushBuffers();
|
//gfxFlushBuffers();
|
||||||
gfxSwapBuffers();
|
//gfxSwapBuffers();
|
||||||
gfxWaitForVsync();
|
//gfxWaitForVsync();
|
||||||
|
|
||||||
consoleCls('2');
|
consoleCls('2');
|
||||||
|
|
||||||
@ -752,9 +752,9 @@ void consolePrintChar(int c) {
|
|||||||
newRow();
|
newRow();
|
||||||
case 13:
|
case 13:
|
||||||
currentConsole->cursorX = 0;
|
currentConsole->cursorX = 0;
|
||||||
gfxFlushBuffers();
|
//gfxFlushBuffers();
|
||||||
gfxSwapBuffers();
|
//gfxSwapBuffers();
|
||||||
gfxWaitForVsync();
|
//gfxWaitForVsync();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
consoleDrawChar(c);
|
consoleDrawChar(c);
|
||||||
|
Loading…
Reference in New Issue
Block a user