STORM-IRIT / Radium-Engine

Research 3D Engine for rendering, animation and processing
https://storm-irit.github.io/Radium-Engine/
Apache License 2.0
100 stars 50 forks source link

Concurrent GPU / multithread tasks. #1065

Open dlyr opened 1 year ago

dlyr commented 1 year ago
          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

_Originally posted by @dlyr in https://github.com/STORM-IRIT/Radium-Engine/pull/1056#discussion_r1347532722_