Multithreading with Taskflow
Modern graphical applications require us to harness the power of multiple CPUs to be performant. Taskflow is a fast C++ header-only library that can help you write parallel programs with complex task dependencies quickly. This library is extremely useful as it allows you to jump into the development of multithreaded graphical applications that make use of advanced rendering concepts, such as frame graphs and multithreaded command buffer generation.
Getting ready
Here, we use Taskflow version 3.8.0. You can download it using the following Bootstrap snippet:
{
"name": "taskflow",
"source": {
"type": "git",
"url" : "https://github.com/taskflow/taskflow.git",
"revision": "v3.8.0"
}
}
To debug dependency graphs produced by Taskflow, it is recommended that you install the GraphViz tool from https://www.graphviz.org.
The complete source...