Hello, I recently converted the main path of my code to use TBB flow graph, previously I was using combinations of parallel_for and serial code. In addition to this my codebase contains longer running tasks in a seperate task_group which are not waited on, they finish when they finish. Unfortunatly I am seeing a big problem with performance, each call to graph.wait_for_all() is taking much longer than it should. My first guess is that somehow wait_for_all() is waiting on my long running tasks, this essentially brings my program to a crawl(it is a video game).Assuming that this is the case, is there any way to make flow graph only work on the tasks I've given it?Or is there some other explanation for why flow graph causes such horrible slow down?Is flow graph suited for a real time application?ThanksPS. This forum is really bad at formating text, it removes all line spaces :(
For more complete information about compiler optimizations, see our Optimization Notice.