[*] Unlimited input fps

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

View File

@ -2332,7 +2332,14 @@ namespace Aurora::Console::ConsoleTTY
{ {
while (AuIsThreadRunning()) while (AuIsThreadRunning())
{ {
AuThreading::Sleep(1000 / 20); if (auto pLoopSource = AuConsole::StdInBufferLoopSource())
{
pLoopSource->WaitOn(1000 / 20);
}
else
{
AuThreading::Sleep(1000 / 20);
}
gTTYConsole.Pump(); gTTYConsole.Pump();
} }
} }