My bad, I mixed up between runTask and runTasksInThisThread.
I'll fix it.
The local taskQueue is the most direct solution I find to prevent thread taking tasks during "this thread" run.
When I think about it, the solution might be to have two tasks lists, one for multi-thread, the other for this thread, and they might have inter dependencies.
Hence GPU tasks in main thread and other tasks could be scheduled by the same taskQueue. Let's postpone for a future PR
I'll fix it. The local taskQueue is the most direct solution I find to prevent thread taking tasks during "this thread" run.
When I think about it, the solution might be to have two tasks lists, one for multi-thread, the other for this thread, and they might have inter dependencies. Hence GPU tasks in main thread and other tasks could be scheduled by the same taskQueue. Let's postpone for a future PR
_Originally posted by @dlyr in https://github.com/STORM-IRIT/Radium-Engine/pull/1056#discussion_r1347532722_