[Cs-dev] ftgemtmp latency on OSX
Date | 2011-02-25 09:02 |
From | Oeyvind Brandtsegg |
Subject | [Cs-dev] ftgemtmp latency on OSX |
One of my students made me aware of a funny latency issue. If we use ftgentmp in an instrument, we get some latency, with an increasing amount depending on the number of ftgentmp calls in the instrument. In itself, this might not be so strange, as ftgentmp must create the tables every time the instrument is initialized. The funny thing is that we get no such latency under windows, only under OSX. Csd pasted below (you may have to adjust buffers as the -b10 used is admittedly very low, but works on OSX on our lab) best Oeyvind |
Date | 2011-02-25 10:15 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] ftgemtmp latency on OSX |
I tried this and did not notice any change. Note that you have 2 ksmps assignments in your orchestra. You might want to remove the second one. On 25 Feb 2011, at 09:02, Oeyvind Brandtsegg wrote: > One of my students made me aware of a funny latency issue. > > If we use ftgentmp in an instrument, we get some latency, with an > increasing amount depending on the number of ftgentmp calls in the > instrument. > In itself, this might not be so strange, as ftgentmp must create the > tables every time the instrument is initialized. > The funny thing is that we get no such latency under windows, only > under OSX. > > Csd pasted below > (you may have to adjust buffers as the -b10 used is admittedly very > low, but works on OSX on our lab) > > best > Oeyvind > > > |
Date | 2011-02-25 10:19 |
From | Oeyvind Brandtsegg |
Subject | Re: [Cs-dev] ftgemtmp latency on OSX |
Strange, I'll get someone to try it on another osx machine too. Sorry about the double ksmps... 2011/2/25 Victor Lazzarini |
Date | 2011-02-25 10:52 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] ftgemtmp latency on OSX |
I'm on 10.5; this might be the difference. On 25 Feb 2011, at 10:19, Oeyvind Brandtsegg wrote: > Strange, > I'll get someone to try it on another osx machine too. > Sorry about the double ksmps... > > 2011/2/25 Victor Lazzarini |
Date | 2011-02-25 11:46 |
From | Michael Gogins |
Subject | Re: [Cs-dev] ftgemtmp latency on OSX |
Attachments | None None |
Use ftgenonce? On Feb 25, 2011 4:03 AM, "Oeyvind Brandtsegg" <oyvind.brandtsegg@ntnu.no> wrote:
> One of my students made me aware of a funny latency issue. > > If we use ftgentmp in an instrument, we get some latency, with an > increasing amount depending on the number of ftgentmp calls in the > instrument. > In itself, this might not be so strange, as ftgentmp must create the > tables every time the instrument is initialized. > The funny thing is that we get no such latency under windows, only under OSX. > > Csd pasted below > (you may have to adjust buffers as the -b10 used is admittedly very > low, but works on OSX on our lab) > > best > Oeyvind > > > <CsoundSynthesizer> > <CsOptions> > -odac1 -M0 -b10 -B20 -m0 > </CsOptions> > <CsInstruments> > > sr = 44100 > ksmps = 10 > ksmps = 100 > nchnls = 2 > 0dbfs = 1 > > giSine ftgen 0, 0, 65537, 10, 1 ; sine wave > > ;******************************************** > instr 1 > > iTest1 ftgentmp 0, 0, 8, -2, 0 > iTest2 ftgentmp 0, 0, 8, -2, 0 > iTest3 ftgentmp 0, 0, 8, -2, 0 > iTest4 ftgentmp 0, 0, 8, -2, 0 > iTest5 ftgentmp 0, 0, 8, -2, 0 > iTest6 ftgentmp 0, 0, 8, -2, 0 > a1 oscili 1, 440, giSine > outs a1, a1 > > endin > ;******************************************** > </CsInstruments> > > <CsScore> > f0 20 > e > </CsScore> > </CsoundSynthesizer> > > ------------------------------------------------------------------------------ > Free Software Download: Index, Search & Analyze Logs and other IT data in > Real-Time with Splunk. Collect, index and harness all the fast moving IT data > generated by your applications, servers and devices whether physical, virtual > or in the cloud. Deliver compliance at lower cost and gain new business > insights. http://p.sf.net/sfu/splunk-dev2dev > _______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel |
Date | 2011-02-25 11:52 |
From | Oeyvind Brandtsegg |
Subject | Re: [Cs-dev] ftgemtmp latency on OSX |
Well, yes I can work around it even by using global ftables. I just thought it was strange that Csound behaved differently on the two different platforms. Oeyvind 2011/2/25 Michael Gogins |
Date | 2011-02-25 13:12 |
From | Michael Gogins |
Subject | Re: [Cs-dev] ftgemtmp latency on OSX |
Attachments | None None |
Perhaps the heap acts differently. On Feb 25, 2011 6:53 AM, "Oeyvind Brandtsegg" <oyvind.brandtsegg@ntnu.no> wrote:
> Well, yes I can work around it even by using global ftables. > I just thought it was strange that Csound behaved differently on the > two different platforms. > Oeyvind > > 2011/2/25 Michael Gogins <michael.gogins@gmail.com>: >> Use ftgenonce? >> >> On Feb 25, 2011 4:03 AM, "Oeyvind Brandtsegg" <oyvind.brandtsegg@ntnu.no> >> wrote: >>> One of my students made me aware of a funny latency issue. >>> >>> If we use ftgentmp in an instrument, we get some latency, with an >>> increasing amount depending on the number of ftgentmp calls in the >>> instrument. >>> In itself, this might not be so strange, as ftgentmp must create the >>> tables every time the instrument is initialized. >>> The funny thing is that we get no such latency under windows, only under >>> OSX. >>> >>> Csd pasted below >>> (you may have to adjust buffers as the -b10 used is admittedly very >>> low, but works on OSX on our lab) >>> >>> best >>> Oeyvind >>> >>> >>> <CsoundSynthesizer> >>> <CsOptions> >>> -odac1 -M0 -b10 -B20 -m0 >>> </CsOptions> >>> <CsInstruments> >>> >>> sr = 44100 >>> ksmps = 10 >>> ksmps = 100 >>> nchnls = 2 >>> 0dbfs = 1 >>> >>> giSine ftgen 0, 0, 65537, 10, 1 ; sine wave >>> >>> ;******************************************** >>> instr 1 >>> >>> iTest1 ftgentmp 0, 0, 8, -2, 0 >>> iTest2 ftgentmp 0, 0, 8, -2, 0 >>> iTest3 ftgentmp 0, 0, 8, -2, 0 >>> iTest4 ftgentmp 0, 0, 8, -2, 0 >>> iTest5 ftgentmp 0, 0, 8, -2, 0 >>> iTest6 ftgentmp 0, 0, 8, -2, 0 >>> a1 oscili 1, 440, giSine >>> outs a1, a1 >>> >>> endin >>> ;******************************************** >>> </CsInstruments> >>> >>> <CsScore> >>> f0 20 >>> e >>> </CsScore> >>> </CsoundSynthesizer> >>> >>> >>> ------------------------------------------------------------------------------ >>> Free Software Download: Index, Search & Analyze Logs and other IT data in >>> Real-Time with Splunk. Collect, index and harness all the fast moving IT >>> data >>> generated by your applications, servers and devices whether physical, >>> virtual >>> or in the cloud. Deliver compliance at lower cost and gain new business >>> insights. http://p.sf.net/sfu/splunk-dev2dev >>> _______________________________________________ >>> Csound-devel mailing list >>> Csound-devel@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/csound-devel >> >> ------------------------------------------------------------------------------ >> Free Software Download: Index, Search & Analyze Logs and other IT data in >> Real-Time with Splunk. Collect, index and harness all the fast moving IT >> data >> generated by your applications, servers and devices whether physical, >> virtual >> or in the cloud. Deliver compliance at lower cost and gain new business >> insights. http://p.sf.net/sfu/splunk-dev2dev >> _______________________________________________ >> Csound-devel mailing list >> Csound-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/csound-devel >> >> > > ------------------------------------------------------------------------------ > Free Software Download: Index, Search & Analyze Logs and other IT data in > Real-Time with Splunk. Collect, index and harness all the fast moving IT data > generated by your applications, servers and devices whether physical, virtual > or in the cloud. Deliver compliance at lower cost and gain new business > insights. http://p.sf.net/sfu/splunk-dev2dev > _______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel |