mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-22 04:52: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;
|
||||
}
|
||||
}
|
||||
gfxFlushBuffers();
|
||||
gfxSwapBuffers();
|
||||
gfxWaitForVsync();
|
||||
//gfxFlushBuffers();
|
||||
//gfxSwapBuffers();
|
||||
//gfxWaitForVsync();
|
||||
}
|
||||
//---------------------------------------------------------------------------------
|
||||
static void consoleClearLine(char mode) {
|
||||
@ -178,9 +178,9 @@ static void consoleClearLine(char mode) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
gfxFlushBuffers();
|
||||
gfxSwapBuffers();
|
||||
gfxWaitForVsync();
|
||||
//gfxFlushBuffers();
|
||||
//gfxSwapBuffers();
|
||||
//gfxWaitForVsync();
|
||||
}
|
||||
|
||||
|
||||
@ -558,9 +558,9 @@ PrintConsole* consoleInit(PrintConsole* console) {
|
||||
gfxSwapBuffers();
|
||||
console->frameBuffer2 = (u32*)gfxGetFramebuffer(NULL, NULL);
|
||||
|
||||
gfxFlushBuffers();
|
||||
gfxSwapBuffers();
|
||||
gfxWaitForVsync();
|
||||
//gfxFlushBuffers();
|
||||
//gfxSwapBuffers();
|
||||
//gfxWaitForVsync();
|
||||
|
||||
consoleCls('2');
|
||||
|
||||
@ -752,9 +752,9 @@ void consolePrintChar(int c) {
|
||||
newRow();
|
||||
case 13:
|
||||
currentConsole->cursorX = 0;
|
||||
gfxFlushBuffers();
|
||||
gfxSwapBuffers();
|
||||
gfxWaitForVsync();
|
||||
//gfxFlushBuffers();
|
||||
//gfxSwapBuffers();
|
||||
//gfxWaitForVsync();
|
||||
break;
|
||||
default:
|
||||
consoleDrawChar(c);
|
||||
|
Loading…
Reference in New Issue
Block a user