Quote:
Originally Posted by deimos
Is this what you mean?
[...]
Assuming that the values of abs x, y, z recurr within this or even other models, then the individual products, ax, by, cz, and so on, will be worth storing for reuse. Or, calculated in bulk at the start of the process.
|
Yep, that's what I wanted to say. As symmetries around the origin result in same abs values for the vector elements, they are therefore beneficial for this trick. If you have other models with same coordinate values* that always share the same rotation matrix, you can exploit that too, of course.
I'd try this with your sphere and see what you can gain.
*some more advanced optimization could take into account that partial sums appear more than once (cube example), or that for a vector v' = (2x,y,z) or the like you can reuse the products from v = (x,y,z) with some simple additional adds.