1
0
mirror of synced 2025-02-09 23:38:27 +01:00

fix: Very slow processing of large pattern console outputs

This commit is contained in:
WerWolv 2025-02-07 22:19:15 +01:00
parent 72c2bca363
commit 18cd39270a
2 changed files with 5 additions and 3 deletions

@ -1 +1 @@
Subproject commit 17adb10afca651bce61289bbfc4348242ec76da6
Subproject commit c6c63d892465557ce4c8cee2d6823857b1c69138

View File

@ -1071,12 +1071,14 @@ namespace hex::plugin::builtin {
const auto linesToAdd = m_console->size() - lineCount;
std::string content;
for (size_t i = 0; i < linesToAdd; i += 1) {
if (!skipNewLine)
m_consoleEditor.InsertText("\n");
content += '\n';
skipNewLine = false;
m_consoleEditor.InsertText(m_console->at(lineCount + i));
content += m_console->at(lineCount + i);
}
m_consoleEditor.SetText(content);
m_consoleNeedsUpdate = false;
}