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;