Lua is not really good for doing matrix processing within the script in realtime as it will incur all kinds of overhead. It's best instead to deal with a matrix userdata type with arithmetic metamethod calls defined. This will be really fast and completely dynamic.
wes
On Dec 11, 2007 8:35 AM, Frank Barknecht fbar@footils.org wrote:
Hallo, Frank Barknecht hat gesagt: // Frank Barknecht wrote:
Okay++: I benchmarked it, and Pd is slightly faster and I'm disappointed. ;)
Could this be because Lua calculates double precision? Maybe I'll benchmark again with LUA_NUMBER set to float.
Okay+++: With single precision, lua finally beats Pd and is about a fifth faster. I'm relieved, however that brings up the questions, if I should use lua with single precision in Pd? What would I loose (besides precision)?
Ciao
Frank Barknecht _ ______footils.org__
GEM-dev mailing list GEM-dev@iem.at http://lists.puredata.info/listinfo/gem-dev