Re:How Civilization V was built for multi-core processors [p...
by Zev on Wednesday October 13, 2010 @09:19PM
(#1789492)
GCD is separate from blocks; you can use one without the other. GCD/libdispatch is a library written for concurrent execution and to make it easier to manage. Blocks are closures added to C, Objective-C and C++. Lambda's have also been (or rather, will be) added to C++, in C++0x.
I've never used Intel's TBB, but it looks like it is similar to what libdispatch's purpose is. Of course, I could be way off base. But, I don't think I am.
Re:How Civilization V was built for multi-core processors [p...
by jmah on Thursday October 14, 2010 @06:21PM
(#1792890)
There was a session at WWDC 2009 given by a couple of Intel engineers comparing the two. (Session 131, if you have access.) In their benchmark - parallel pipelined face detection - they were within about 1% of each other. GCD scaled up to more cores slightly better.
Because it was initially built for TBB, they had to use some additional logic when moving to GCD so that frames would be rearranged into sequential order before certain stages.
Anyone have pros and cons of both frameworks?