From bf70a42d86f0ca84715a00ac85245e1ae04af758 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Tue, 15 Jun 2021 23:48:35 +0200 Subject: [PATCH] Change TaskGraphSystem ordering --- Source/Engine/Threading/TaskGraph.cpp | 2 +- Source/Engine/Threading/TaskGraph.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Engine/Threading/TaskGraph.cpp b/Source/Engine/Threading/TaskGraph.cpp index aa86a94a9..621636203 100644 --- a/Source/Engine/Threading/TaskGraph.cpp +++ b/Source/Engine/Threading/TaskGraph.cpp @@ -9,7 +9,7 @@ namespace { bool SortTaskGraphSystem(TaskGraphSystem* const& a, TaskGraphSystem* const& b) { - return b->Order < a->Order; + return b->Order > a->Order; }; } diff --git a/Source/Engine/Threading/TaskGraph.h b/Source/Engine/Threading/TaskGraph.h index 7268e644c..142b0d2a1 100644 --- a/Source/Engine/Threading/TaskGraph.h +++ b/Source/Engine/Threading/TaskGraph.h @@ -19,7 +19,7 @@ private: public: /// - /// The execution order of the system (systems with higher order are executed earlier). + /// The execution order of the system (systems with higher order are executed later, lower first). /// API_FIELD() int32 Order = 0;