chore: updated misleading comment
This commit is contained in:
parent
14843ddeba
commit
7212094a3d
@ -4,7 +4,7 @@ namespace Syntriax.Engine.Core;
|
|||||||
|
|
||||||
public class UpdateManager : Behaviour
|
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<IBehaviour> SortByAscendingPriority() => Comparer<IBehaviour>.Create((x, y) => x.Priority.CompareTo(y.Priority));
|
private static Comparer<IBehaviour> SortByAscendingPriority() => Comparer<IBehaviour>.Create((x, y) => x.Priority.CompareTo(y.Priority));
|
||||||
|
|
||||||
private readonly ActiveBehaviourCollectorSorted<IFirstFrameUpdate> firstFrameUpdates = new() { SortBy = SortByAscendingPriority() };
|
private readonly ActiveBehaviourCollectorSorted<IFirstFrameUpdate> firstFrameUpdates = new() { SortBy = SortByAscendingPriority() };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user