Stress testing jit.gl.sketch

LSka's icon

Hello everybody,

Max Patch
Copy patch and select New From Clipboard in Max.

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:

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

Rob Ramirez's icon
Max Patch
Copy patch and select New From Clipboard in Max.

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.

LSka's icon

Thank you Rob, this solution is much more stable.