Reduce allocations in text rendering related functions

This commit is contained in:
2025-05-04 15:05:46 +03:00
parent af955ba418
commit 559d17e6c3
4 changed files with 13 additions and 13 deletions

View File

@@ -176,7 +176,7 @@ void TextRender::UpdateLayout()
int32 kerning;
// Perform layout
Array<FontLineCache> lines;
Array<FontLineCache, InlinedAllocation<8>> lines;
font->ProcessText(text, lines, _layoutOptions);
// Prepare buffers capacity