[Feature] Taskflow for performance and parallel tasking #206
Draft
The3dVehicleguy wants to merge 7 commits intoPanosK92:masterfrom
Draft
[Feature] Taskflow for performance and parallel tasking #206The3dVehicleguy wants to merge 7 commits intoPanosK92:masterfrom
The3dVehicleguy wants to merge 7 commits intoPanosK92:masterfrom
Conversation
* master: [ray_tracing] replaced single bounce gi with restir path tracing, which is just a work in progress for now [memory] improved memory allocator with memory tags, marking and did some bug fixes [physics] cleanup [game] adjusted showroom light intensity [ray_tracing] global illumination (WIP) [ray_tracing] made ray tracing shaodws mutually exlusive to raster and screen space [ray_tracing] fixed an issue where if you loaded a second world, acceleration structures wouldn't update properly [ray_tracing] directional light shadows [game] different car views are now working [d3d12] implemented so more, getting closer editor rendering
(Note: I had AI to write the commit message because I was lazy. Plz don't hate me) Adds a modular, thread-safe taskflow system for parallel task execution using the Taskflow library. Includes: - FrameTaskflow: reference frame pipeline with customizable stage callbacks (Input, AI, Physics, Renderer) and dependency management. - TaskflowExecutor: singleton executor managing a global thread pool for all engine taskflows. - Taskflow_Utils: utility functions for common parallel patterns (run, async, parallel_for, subflow, reduce). Refactors Task_Manager to use the new executor and updates member naming for consistency. All new code is well-documented and marked experimental. Lays groundwork for scalable, parallel task scheduling across engine subsystems.
Owner
|
The engine is already extremely GPU-driven, with almost no CPU overhead in rendering and thread pool handling the rest of the work fine. Is there another reason I am not seeing for this PR? Are you still working on it? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
**Taskflow Implementation for performance and parallel tasking **
This pull request implements the Taskflow library into Spartan with wrapper functions to allow multiple parallel task operations and GPU side task execution with Nvidia CUDA Graph
TODO List:
third_partydirectory + add to premake5 config process.