Forums > Jitter

Stress testing jit.gl.sketch

April 24, 2013 | 2:01 pm

Hello everybody,

I put up a very simple patch which roughly simulates the real situation I wish to achieve (tracking a point in space and drawing a line). Here it is:

– Pasted Max Patch, click to expand. –

Now, I’m sending pseudo-random values to jit.gl.sketch at 30 hz interval, simulating the behaviour of a tracking system. The values are given to jit.gl.sketch as strokepoints.
The first issue is: if I let the patch go, the framerate drops in less than 30 seconds, then Max crashes. Maybe too many strokepoints?
The second issue is: if I let the patch go for a while (about 15 secs.), and then I send the "endstroke" message, Max crashes immediately.

Is there anything I can do (apart from trying to reduce the random values’ frequency)?

System Info:
Max 6.1.2 on MBP late 2009 (NVIDIA GeForce 9600M GT), Mac OS X 10.6.8


April 24, 2013 | 6:18 pm

use jit.gl.path.
you still have to worry about running out of memory, but performs much better than jit.gl.sketch for this kind of thing.

– Pasted Max Patch, click to expand. –

April 25, 2013 | 8:43 am

Thank you Rob, this solution is much more stable.


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