On 21.03.2010 11:30, Mohit Taneja wrote:
> I was going through the GSoC Ideas page
> <http://trac.crystalspace3d.org/trac/CS/wiki/SoC%20Ideas> on CS wiki. I
> was thinking about working on the improvements in lighter2 module. I am
> a bit curious about how can lighter2 take advantage of
> multi-threading.Though I was able to figure out that how can photon
> mapping take advantage of multiple processors, which is yet to be
> incorporated, but I was not able to figure out how can one take
> advantage of multiple cores with the current lighting model.

Direct lighting just sums up the incoming light for each lightmap pixel.
The computation is pretty much independent so you could, simply put,
just compute any number of lightmap pixels in parallel.
(In principle. There are some things lighter2 does that make it slightly
less straghtforward.)

> Also, is there a difference between how can the code be optimized to
> explore multi-cores and multiple processors. I am not sure but I guess
> multi-threading is the way to go, for taking advantage of multi-cores or
> multiple processors.

There is no difference. The difference between "multi-core" and
"multi-processor" is that in the former you have one physical package,
while in the later you have multiple ones. Programming-wise there is no
difference (at least unless you go into high performance computing).

-f.r.

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Crystal-main mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/crystal-main
Unsubscribe: 
mailto:[email protected]?subject=unsubscribe

Reply via email to