Core - Fixed very fast logging slowly taking up a lot of memory

Data model debug UI - Improved scrolling
This commit is contained in:
Robert committed 2021-04-23 09:19:43 +02:00
1 parent 1a82903449
commit d32ac329c8
2 files changed
+2 -3

No files matched your search

+1 -1
View File
@@ -25,7 +25,7 @@ namespace Artemis.Core
internal static void Emit(LogEvent logEvent)
{
LinkedList.AddLast(logEvent);
if (LinkedList.Count > 500)
while (LinkedList.Count > 500)
LinkedList.RemoveFirst();
OnEventAdded(new LogEventEventArgs(logEvent));