On 11/29/06, Dennis Schridde <[EMAIL PROTECTED]> wrote:
What I just thought of (totally off topic): Does perhaps GL offer some way of
doing vector math like this? (Add 2 vectors and calculate it's length.)

No, but you can abuse shaders to do it, if you are really desperate
for more speed ;-) This is not advisable until the method of using GPU
for ordinary math calculation becomes a bit more standardized, though.
Right now you have to write one set of code for Nvidia and another for
ATI cards.

However, if you can do several operations in parallell, you can
optimize a great deal by using SSE(2) instructions. Although I think
the biggest savings come from just selecting a good algorithm in the
first place :-)

 - Per

_______________________________________________
Warzone-dev mailing list
[email protected]
https://mail.gna.org/listinfo/warzone-dev

Reply via email to