mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-28 06:53:40 +00:00
Fixed particular slowdown in OS X startup window
During loading of .pk3 that stores hundred of .wad's significant amount of time were spent on scrolling text to the last line The same applies to other cases like output of thousands warnings/errors
This commit is contained in:
parent
c687394f72
commit
145b7be0a1
1 changed files with 4 additions and 3 deletions
|
@ -312,10 +312,11 @@ void FConsoleWindow::AddText(const char* message)
|
|||
}
|
||||
|
||||
if ([m_window isVisible])
|
||||
{
|
||||
UpdateTimed([&]()
|
||||
{
|
||||
[m_textView scrollRangeToVisible:NSMakeRange(m_characterCount, 0)];
|
||||
|
||||
[[NSRunLoop currentRunLoop] limitDateForMode:NSDefaultRunLoopMode];
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue