Advertisement

Vectors bouncing

Started by May 05, 2002 02:38 PM
20 comments, last by evilclown 22 years, 9 months ago
naw
there is no reason to do an asm version of
return a.x * b.x + a.y * b.y + a.z * b.z;

there isnt a asm coder alive that could code that better in asm then then the C++ compilier will do.

sorry, but you are wrong.

say your writting code for the ps2..and you want the compilier to be smart about how it builds your code..its better to just write it yourself. besides that some of the compiliers dont optimize classes efficiently in all cases, especially vector and matrix classes where you want must of your code to be inlined with as few instructions as possible and ordered in such a way that causes the least amount of pipeline stalls. our lead engine guy actaully went into the source of gcc and fixed some of these class issues for the ps2 compilier.

This topic is closed to new replies.

Advertisement