[GEM-dev] Why is [hsv2rgb] implemented as an abstraction?
Wesley Smith
wesley.hoke at gmail.com
Tue Dec 11 19:10:39 CET 2007
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 at 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 at iem.at
> http://lists.puredata.info/listinfo/gem-dev
>
More information about the GEM-dev
mailing list