Benoit,
Far be it from me to argue with one of the implementers, but it
seems like a properly designed set of matrix objects e.g. one that
incorporates the type of features Florian is asking for, including
SIMD support, will definitely be faster than the fastest and most
optimized _javascript_.
For years, C++ game developers have pushed the envelope on getting
C++ compiler support for these types of operations, because they
wanted their C++ to go faster. This is the same situation, but
for a slower language. Why wouldn't a similar approach yield great
benefits? Again, if properly designed?
Peanut gallery out;
Tony
On Thu, Mar 21, 2013 at 8:47 AM, Benoit
Jacob <bjacob@mozilla.com>
wrote:
That would only help if it's implemented directly in
the JS engine like Typed Arrays are. Otherwise the cost of
a DOM API call would dominate.
Benoit
On 13-03-21 11:21 AM, Florian Bösch wrote:
What would really help where some
helper functions in native code/SIMD/platform
optimized that perform basic matrix operations like
inverse, transpose, multiply, determinant etc. from
array buffer to array buffer/view.
--
Tony Parisi tparisi@gmail.com
CTO at Large 415.902.8002
Skype auradeluxe
Follow me on Twitter! http://twitter.com/auradeluxe
Read my blog at http://www.tonyparisi.com/
Read my book! WebGL, Up and Running
http://shop.oreilly.com/product/0636920024729.do
http://www.amazon.com/dp/144932357X
|