Ok...so you are saying that devs have completely unlocked the Cells power just because there has been no significant change in performace in a year?...Ok look at this...an Example of how to make a Fibonacci sequence using and SPE offload...for the cell you generally process by SPE...
The Fibonacci sequence is the relation of numbers in which two starting values, each number is the sum of the two preceding numbers. All programs have a type of variation of this sequence to create a loop. Of course the sequence will dump, or repeat after some point.
(read Fibonacci Sequence Wiki for more details on the Fib Sequence)
How the SPE offload works is that one to six threads are created at a time so that work is offloaded to all available SPEs by the testThread() function. Upon completion of a set of six threads, the next set of SPE offload threads are begun. This continues until all threads have been executed on the SPEs. The Linux gettimeofday() function is called to time this segment of code, including completion time for all SPE threads started.
EXAMPLE START:

This is only 2 Subs of the program. I know for sure if I ask my future proffesor at my college, he'll concure that creating the Fib Seq. in regular Java OR C++ would be alot easier because they don't use SPEs and due to the use of sequential iterations.
/thread....
YAY EDIT NUMBER 1 TO ANSWER A FEW COMMENTS!!!
This code alone does nothing, like I said it has lots of sub routines. In the main it would be set up so after each execution of the code it would have a performance check, to make sure it isn't over calculating (which would cause an overload)
To further explain what is going on at the very top it of course defines what are integers, whole numbers (int), and long, numbers including decimals (long). [to speed things up since this post is taking long] It calls some data from a sub (if the ID tag = 0) and then calls the Fib sub so it then does the process making sure it meets certain crudentials.
Most games don't use C++ or C# as one stated, BUT in order to create the engine, those languages are used.
You posted something complicated for the sake of sounding complicated and so that noone will challenge you. Pretty pathetic.manningbowl135
It worked didn't it?...
Oh...and if you didn't get what I was trying to say...all that code is just showing that the Cell isn't easy to program for, so expect much better games in the future once devs know what they are doing..
------------------------------------------------
Log in to comment