Part of the Khronos Group

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: Micro Optimization with matrices

  1. #1
    Newbie Newbie
    Join Date
    Aug 2016

    Question Micro Optimization with matrices??


    I've just read that you can micro optimize with vectors. They say swizzeling is free and a vector costs as much as a floating point number.
    So, my question is, does this count to matrices? Like, does one matrix costs as much as a floating point number and you can swizzle for free?

    I realy want to know this because, i realy want to optimize the things i already have.

    Thanks already!
    Last edited by robobo1221; 08-24-2016 at 06:35 AM.

  2. #2
    Intern Contributor
    Join Date
    Feb 2016
    Depends on the implementation but more often than not, a matrix is actually N times a vector (N being the number of rows). Matrix multiplication is thus N times a dot product.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts