Optimize multiple dispatches on JobSystem done via TaskGraph

This commit is contained in:
Wojtek Figat
2021-06-16 19:02:02 +02:00
parent d895789296
commit c2590fc0d9
3 changed files with 33 additions and 4 deletions

View File

@@ -29,4 +29,9 @@ DECLARE_SCRIPTING_TYPE_MINIMAL(JobSystem);
/// </summary>
/// <param name="label">The label.</param>
API_FUNCTION() static void Wait(int64 label);
/// <summary>
/// Sets whether automatically start jobs execution on Dispatch. If disabled jobs won't be executed until it gets re-enabled. Can be used to optimize execution of multiple dispatches that should overlap.
/// </summary>
API_FUNCTION() static void SetJobStartingOnDispatch(bool value);
};