fix(logs): optimize log entry retrieval

Refactor the log entry retrieval in Renderer.cs to use the
LogManager's LogEntries collection directly instead of
converting it to a list. This change improves performance
by reducing overhead, especially for larger collections.
This commit is contained in:
whoswhip
2025-07-19 07:56:39 -04:00
parent c4075c4894
commit d8a71f9d91
+1 -1
View File
@@ -378,7 +378,7 @@ namespace Spectrum
ImGui.BeginChild("Logs", new Vector2(0, -34), ImGuiChildFlags.AlwaysUseWindowPadding); ImGui.BeginChild("Logs", new Vector2(0, -34), ImGuiChildFlags.AlwaysUseWindowPadding);
var _LogEntries = LogManager.LogEntries.ToList(); var _LogEntries = LogManager.LogEntries;
foreach (var log in _LogEntries) foreach (var log in _LogEntries)
{ {
ImGui.Text(log.ToString()); ImGui.Text(log.ToString());