Aug 7, 2012 at 10:26pm
Hey- trying to integrate JS and Max for the first time. Any reason this would be going as slow as it is? It brings the framerate down to like 3 fps. Any suggestions?
– Pasted Max Patch, click to expand. –
Copy all of the following text.Then, in Max, select New From Clipboard.
Aug 8, 2012 at 3:46pm
Does it have to do with the fact I’m sending something to an outlet instead of talking to the sketch object internally?
Aug 9, 2012 at 7:55pm
I am very curious about this as well. When Max6 came out, there was great fanfare
When I run your test patch in Max6, the performance starts out good but then within a
It would be great to have some kind of guidelines as to the best way to use JS in
Aug 10, 2012 at 8:22am
A couple of things:
You don’t need to create an array to send things out of an outlet.
The creation of the tempArrays is what is slowing down your code a lot (you are creating about 80 Array objects a second). Check the attached patcher for a better solution. At least the framerate is stable.
Aug 10, 2012 at 5:38pm
Great- thanks for the advice! Yeah- I thought the array thing would be a clever way to clean up what I was sending to the outlet, without having to put in quotes and spaces. But I guess I was wrong!
Do you know if there is a speed difference between creating JitterObjects and sending them commands in JS vs creating the same Max Objects in the patch, referencing them in JS with something like patcher.getNamed(“”) and sending them messages vs sending messages out of the outlets?
Thanks again for your help!
You must be logged in to reply to this topic.