Development Merge 2025.10.18 #4
@@ -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() };
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user