Forums > MaxMSP

Max application performs worse than my patch

March 6, 2008 | 1:02 am

Hi,

I’m a bit confused about an application I have just built and wondered if anyone has any suggestions.

I have a patch that includes openGL rendering and lots of audio. I have optimised my patch so it all runs nicely together but the strange thing is that although it runs well when editing, the rendering is very intermittent when run as an application.

The rendering seems to stall ‘on the musical bar’. Now I know I have a lot of high priority threads going on ‘on the bar’ but I don’t understand why it should work when being edited but not when run using runtime. If anything I would think it should be the other way around.

Anybody got any clues why this could be the case? I don’t particularly want to demo my app from max, I’d much rather run it as a custom app.

Cheers

Andy


March 6, 2008 | 1:27 am

hi Andy,

did you change any of your performance options in max or set your
overdrive to on.
those (and the dspstatus as well for example) are not automatically
set the same way for the runtime in your app.
if so, look at the reference pdf for messages to max of the
form ;max … (for audio settings, I guess it’s the adstatus object)
or unlock the option patchers to figure out how to set those correctly
when your app loads.

//yac

>
> Hi,
>
> I’m a bit confused about an application I have just built and
> wondered if anyone has any suggestions.
>
> I have a patch that includes openGL rendering and lots of audio. I
> have optimised my patch so it all runs nicely together but the
> strange thing is that although it runs well when editing, the
> rendering is very intermittent when run as an application.
>
> The rendering seems to stall ‘on the musical bar’. Now I know I have
> a lot of high priority threads going on ‘on the bar’ but I don’t
> understand why it should work when being edited but not when run
> using runtime. If anything I would think it should be the other way
> around.
>
> Anybody got any clues why this could be the case? I don’t
> particularly want to demo my app from max, I’d much rather run it as
> a custom app.
>
> Cheers
>
> Andy


March 6, 2008 | 9:15 am

Hi,

yeah I have put some message boxes in my patch to set the performance and dsp options. I’m pretty sure that I haven’t missed anything like that unfortunately.

Any other ideas?

Cheers


March 6, 2008 | 9:26 am

Every time it happens it pauses my render for about 300ms, then the render speed ramps from around 16fps up to around 38fps before it happens again. I have now checked all performance options and they are all exactly the same. I have no idea what is causing this.

Andy


March 6, 2008 | 12:21 pm

Could you post a simplified version of your patch so we can see if we
can reproduce?

> Every time it happens it pauses my render for about 300ms, then the
> render speed ramps from around 16fps up to around 38fps before it
> happens again. I have now checked all performance options and they
> are all exactly the same. I have no idea what is causing this.


Viewing 5 posts - 1 through 5 (of 5 total)