diff options
| author | Silent <zdanio95@gmail.com> | 2019-08-31 20:27:15 +0200 |
|---|---|---|
| committer | Silent <zdanio95@gmail.com> | 2019-08-31 21:18:07 +0200 |
| commit | 6bfa4fa64306d2fc882282ea147f2b22afd4a9cb (patch) | |
| tree | af68ebce1518d1b6feab6abc831a7d5aae679ddb /Source/Core/VideoCommon | |
| parent | b3969e91d901ae6c30c9fc12c7e457658817903c (diff) | |
LogWidget: Use FixedSizeQueue for a log messages buffer
Messages buffer is intended to be of a fixed capacity (MAX_LOG_LINES),
which cannot be achieved by std::queue unless we manually pop() extra elements.
std::queue uses std::deque internally which most likely results in allocations performed continuously.
FixedSizeQueue keeps a single buffer during its entire lifetime, avoiding any allocations except the ones
performed by stored objects.
Diffstat (limited to 'Source/Core/VideoCommon')
0 files changed, 0 insertions, 0 deletions
