[*] Unlimited input fps

This commit is contained in:
Reece Wilson 2023-10-28 20:12:28 +01:00
parent 1dd9d552bd
commit 004eba6e09

View File

@ -2331,8 +2331,15 @@ namespace Aurora::Console::ConsoleTTY
static void MainTTY() static void MainTTY()
{ {
while (AuIsThreadRunning()) while (AuIsThreadRunning())
{
if (auto pLoopSource = AuConsole::StdInBufferLoopSource())
{
pLoopSource->WaitOn(1000 / 20);
}
else
{ {
AuThreading::Sleep(1000 / 20); AuThreading::Sleep(1000 / 20);
}
gTTYConsole.Pump(); gTTYConsole.Pump();
} }
} }