Csound Csound-dev Csound-tekno Search About

[Cs-dev] CS6 Issues: Performance, Not Stopping

Date2013-12-18 16:30
FromSteven Yi
Subject[Cs-dev] CS6 Issues: Performance, Not Stopping
Attachmentsphaseshaper.csd  None  None  
Hi All,

I'm finding some odd things with CS6.  I don't know if it was
something introduced lately or not, but the attached CSD performs
horribly in CS6.

I tested with CS5 and it renders to disk in some 8 seconds.  With CS6,
once it gets to about 15 seconds into the score, it slows down
dramatically; also, Csound never stops running. This is evident in the
render to disk, but also in realtime.

Also with realtime, I've found that once there's a buffer underrun,
things don't really recover like they did in CS5, it just gets stuck
in perpetual underrun.

I think there's definitely a bug, but at this point I'm not sure what
it is. I've only started looking into this last night.  I tried
replacing table3 with tablei in the project, but that had little
effect.  I suppose there are two problems at this point: 1. project
does not stop and 2. performance is awful.

I had one suspicion that instruments aren't really turning off, but I
don't know why that'd be the case.

Any help appreciated!
steven

Date2013-12-18 17:19
FromSteven Yi
SubjectRe: [Cs-dev] CS6 Issues: Performance, Not Stopping
Hi All,

Following up, with some assistance from John, I found that the bug was
in the xtratim opcode.  It had not been updated to work with the local
ksmps value.  That meant if xtratim was used within a UDO with
setksmps (as it turns out it was in this project), the offtime's that
were being calculated were extremely off.

I've pushed the fix to git.  With the change, the score is correctly
ending, and performance is now as I would have expected (on par with
CS5).

Thanks!
steven



On Wed, Dec 18, 2013 at 11:30 AM, Steven Yi  wrote:
> Hi All,
>
> I'm finding some odd things with CS6.  I don't know if it was
> something introduced lately or not, but the attached CSD performs
> horribly in CS6.
>
> I tested with CS5 and it renders to disk in some 8 seconds.  With CS6,
> once it gets to about 15 seconds into the score, it slows down
> dramatically; also, Csound never stops running. This is evident in the
> render to disk, but also in realtime.
>
> Also with realtime, I've found that once there's a buffer underrun,
> things don't really recover like they did in CS5, it just gets stuck
> in perpetual underrun.
>
> I think there's definitely a bug, but at this point I'm not sure what
> it is. I've only started looking into this last night.  I tried
> replacing table3 with tablei in the project, but that had little
> effect.  I suppose there are two problems at this point: 1. project
> does not stop and 2. performance is awful.
>
> I had one suspicion that instruments aren't really turning off, but I
> don't know why that'd be the case.
>
> Any help appreciated!
> steven

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-12-18 19:34
FromVictor Lazzarini
SubjectRe: [Cs-dev] CS6 Issues: Performance, Not Stopping
That was quick! I'm glad you've found it. My heart sinks when I see subjects like the one
from this message.
On 18 Dec 2013, at 17:19, Steven Yi wrote:

> Hi All,
> 
> Following up, with some assistance from John, I found that the bug was
> in the xtratim opcode.  It had not been updated to work with the local
> ksmps value.  That meant if xtratim was used within a UDO with
> setksmps (as it turns out it was in this project), the offtime's that
> were being calculated were extremely off.
> 
> I've pushed the fix to git.  With the change, the score is correctly
> ending, and performance is now as I would have expected (on par with
> CS5).
> 
> Thanks!
> steven
> 
> 
> 
> On Wed, Dec 18, 2013 at 11:30 AM, Steven Yi  wrote:
>> Hi All,
>> 
>> I'm finding some odd things with CS6.  I don't know if it was
>> something introduced lately or not, but the attached CSD performs
>> horribly in CS6.
>> 
>> I tested with CS5 and it renders to disk in some 8 seconds.  With CS6,
>> once it gets to about 15 seconds into the score, it slows down
>> dramatically; also, Csound never stops running. This is evident in the
>> render to disk, but also in realtime.
>> 
>> Also with realtime, I've found that once there's a buffer underrun,
>> things don't really recover like they did in CS5, it just gets stuck
>> in perpetual underrun.
>> 
>> I think there's definitely a bug, but at this point I'm not sure what
>> it is. I've only started looking into this last night.  I tried
>> replacing table3 with tablei in the project, but that had little
>> effect.  I suppose there are two problems at this point: 1. project
>> does not stop and 2. performance is awful.
>> 
>> I had one suspicion that instruments aren't really turning off, but I
>> don't know why that'd be the case.
>> 
>> Any help appreciated!
>> steven
> 
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT 
> organizations don't have a clear picture of how application performance 
> affects their revenue. With AppDynamics, you get 100% visibility into your 
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-12-19 05:13
FromSteven Yi
SubjectRe: [Cs-dev] CS6 Issues: Performance, Not Stopping
Yeah, I was worried it was going to be a long day of debugging when I
started, but I (thankfully) got lucky in finding the cause. Very glad
for it! :)

On Wed, Dec 18, 2013 at 2:34 PM, Victor Lazzarini
 wrote:
> That was quick! I'm glad you've found it. My heart sinks when I see subjects like the one
> from this message.
> On 18 Dec 2013, at 17:19, Steven Yi wrote:
>
>> Hi All,
>>
>> Following up, with some assistance from John, I found that the bug was
>> in the xtratim opcode.  It had not been updated to work with the local
>> ksmps value.  That meant if xtratim was used within a UDO with
>> setksmps (as it turns out it was in this project), the offtime's that
>> were being calculated were extremely off.
>>
>> I've pushed the fix to git.  With the change, the score is correctly
>> ending, and performance is now as I would have expected (on par with
>> CS5).
>>
>> Thanks!
>> steven
>>
>>
>>
>> On Wed, Dec 18, 2013 at 11:30 AM, Steven Yi  wrote:
>>> Hi All,
>>>
>>> I'm finding some odd things with CS6.  I don't know if it was
>>> something introduced lately or not, but the attached CSD performs
>>> horribly in CS6.
>>>
>>> I tested with CS5 and it renders to disk in some 8 seconds.  With CS6,
>>> once it gets to about 15 seconds into the score, it slows down
>>> dramatically; also, Csound never stops running. This is evident in the
>>> render to disk, but also in realtime.
>>>
>>> Also with realtime, I've found that once there's a buffer underrun,
>>> things don't really recover like they did in CS5, it just gets stuck
>>> in perpetual underrun.
>>>
>>> I think there's definitely a bug, but at this point I'm not sure what
>>> it is. I've only started looking into this last night.  I tried
>>> replacing table3 with tablei in the project, but that had little
>>> effect.  I suppose there are two problems at this point: 1. project
>>> does not stop and 2. performance is awful.
>>>
>>> I had one suspicion that instruments aren't really turning off, but I
>>> don't know why that'd be the case.
>>>
>>> Any help appreciated!
>>> steven
>>
>> ------------------------------------------------------------------------------
>> Rapidly troubleshoot problems before they affect your business. Most IT
>> organizations don't have a clear picture of how application performance
>> affects their revenue. With AppDynamics, you get 100% visibility into your
>> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
>> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> Dr Victor Lazzarini
> Senior Lecturer
> Dept. of Music
> NUI Maynooth Ireland
> tel.: +353 1 708 3545
> Victor dot Lazzarini AT nuim dot ie
>
>
>
>
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT
> organizations don't have a clear picture of how application performance
> affects their revenue. With AppDynamics, you get 100% visibility into your
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net