[PD] lua scripting for pd objects

marius schebella marius.schebella at gmail.com
Sun Apr 13 20:31:51 CEST 2008


hello frank,
not sure how to compare. the lua code fades the lines out, but the c++ 
object does not. I can create 100000 lines in lbuff and still only get 
34% cpu use. with lua and aging 0 I can only have about 17000 lines.
marius.

Frank Barknecht wrote:
> Hallo,
> cyrille henry hat gesagt: // cyrille henry wrote:
> 
>>> luagl is not as fast as C, but it's already much faster than using
>>> lots of separators or double gemheads. 
>>>
>>> Regarding Gem-externals: Does anyone have a simple template project
>>> how to write and compile a custom Gem external? This could be very
>>> useful, but I'm a bit confused how to do this in a simple way.
>>>
>>
>> use a gem object (like cube).
>> search and replace "cube" by the name of your object in both the ccp and h 
>> file.
>> use this makefile (adjust the name of the file / src directory).
>> it should compile.
> 
> Thanks a lot Cyrille. I made a little "benchmark" of a [linebuffer]
> object in luagl vs. a quickly hacked C++ version (warning, very ugly
> code!! Includes bugs I didn't care to fix for now.)
> 
> In this case, Lua does compare quite well with the C++ version on my
> machine.
> 
> Ciao
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> PD-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list





More information about the Pd-list mailing list