From 7212094a3d8bb74d6c9baca9213d62a13cb53713 Mon Sep 17 00:00:00 2001 From: Syntriax Date: Sat, 28 Jun 2025 14:15:11 +0300 Subject: [PATCH] chore: updated misleading comment --- Engine.Core/Systems/UpdateManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Engine.Core/Systems/UpdateManager.cs b/Engine.Core/Systems/UpdateManager.cs index dcf8070..20e5f58 100644 --- a/Engine.Core/Systems/UpdateManager.cs +++ b/Engine.Core/Systems/UpdateManager.cs @@ -4,7 +4,7 @@ namespace Syntriax.Engine.Core; public class UpdateManager : Behaviour { - // We use Ascending order because draw calls are running from last to first + // We use Ascending order because we are using reverse for loop to call them private static Comparer SortByAscendingPriority() => Comparer.Create((x, y) => x.Priority.CompareTo(y.Priority)); private readonly ActiveBehaviourCollectorSorted firstFrameUpdates = new() { SortBy = SortByAscendingPriority() };