|
I'm looking at integrating EnkiTS to make a job system for a game engine. While declaring dependencies between tasks seems rather simple, I'm a bit unclear on how to prevent two tasks which write to the same resources from running simultaneously, in cases where one doesn't necessarily depend on another. Suppose, for example, I have two tasks that mutate the same I was looking into attempting to use a mix of EnkiTS and entt::organizer to solve this, but that utility is giving me trouble. Can I do this entirely with EnkiTS? |
Replies: 1 comment
|
EnkiTS currently doesn't have resource dependencies, but you can work around this by using the current dependency system which will prevent both from running in parallel. Since you don't care which order they run in you can have them run in the order you assign. |
EnkiTS currently doesn't have resource dependencies, but you can work around this by using the current dependency system which will prevent both from running in parallel. Since you don't care which order they run in you can have them run in the order you assign.