- Home /
Question by
Chapter9 · Apr 30, 2010 at 06:49 PM ·
optimizationvector
Why aren't we able to multiply or "mask" vectors ?
I would like to do this:
Vector3 testVector = new Vector3(10.0f, 10.0f, 10.0f);
Vector3 maskVector = new Vector3(1.0f, 0.0f, 0.0f);
Vector3 result = testVector * maskVector;
result =* anotherstuff
instead of:
Vector3 testVector = new Vector3(10.0f, 10.0f, 10.0f);
Vector3 result = testVector;
testVector.y = 0.0f;
testVector.z = 0.0f;
result =* anotherstuff
Since I've heard it is more efficient for the processor to process consecutive vector intrinsic functions instead of having to come back and forth calculating floats ...
Is there a place where we can ask for features ?
Comment
Your answer
Follow this Question
Related Questions
Instance of Vector3.zero faster than Vector3.zero? 2 Answers
How to force static batching being performed at runtime? 0 Answers
Webplayer crashes on Chrome, but not on any other browser. Any way to avoid ? 1 Answer
Setting Material Textures at runtime for the rest of the game 0 Answers
Should i bake the skinned mesh? 1 Answer