Performance
The point of Advanced Logs is a log you can keep open, even in its own window on a second monitor, without paying for it in frame time.
Measured
UE 5.8 on Windows, same editor session, level viewport visible, both log windows 1000×700 on the same monitor. Game-thread time per frame:
| Scenario | No log window | Stock Output Log window | Advanced Logs window |
|---|---|---|---|
| Idle | 6.35 ms | 8.34 ms (+1.99 ms) | 6.91 ms (+0.56 ms) |
| 3000 lines per second | 6.86 ms | 13.33 ms (+6.47 ms) | 7.52 ms (+0.66 ms) |
Under load the stock window took the editor from about 119 to about 75 frames per second. Single runs: expect about ±0.5 ms of noise.
You can reproduce it in your own project:
AdvancedLogs.Dev.StockWindow open
AdvancedLogs.Stress 3000 12
AdvancedLogs.Dev.Bench 10 stock
AdvancedLogs.Dev.StockWindow close
AdvancedLogs.PopOut
AdvancedLogs.Stress 3000 12
AdvancedLogs.Dev.Bench 10 advanced
The averages are written to Saved/AdvancedLogs/Bench.csv.
Why the stock Output Log is expensive
It shows the log in a multi-line editable text box. Every new line goes through text layout, and the box paints every visible run of text again on every frame. The more lines it holds and the faster they come, the more it costs. In a separate window, that window is painted and presented every frame too.
What Advanced Logs does instead
- Capture is decoupled from the UI. Lines are only queued when they are logged, from any thread, without locks. They are moved into the log in batches, 10 times per second by default.
- No layout per line. The log body is a single widget that draws only the rows on screen. With word wrap on, line breaks are computed for the visible rows only and cached.
- No repaint when nothing changes. The view repaints on new rows, scrolling, hovering or selecting, and never otherwise.
- Throttled while unfocused. At most 20 repaints per second while you look at it, 4 while its window is in the background.
- Bounded memory. 200,000 lines per source by default, dropped in blocks from the oldest.
- Incremental filtering. Only new lines are tested against the filter; everything is filtered again only when you change the filter.
All the rates and the line limit are in Settings.
Tuning
- A lower refresh rate makes it even cheaper while lines pour in, at the cost of smoothness.
- A lower background refresh rate helps when it sits on a second monitor while you play.
- Monospace font is cheaper to measure than a proportional one, and keeps columns aligned.
- Max lines bounds the memory each source can use.