I'm working on an application that uses a js-scripted jit.gl.text3d object in the same pattern as the multi_text subpatch in the jit.gl.text2d help file to render a few hundred blocks of animated text to the output. I've found that my application leaks memory horribly (uses 2GB and crashes within a few minutes).
Upon further review, the multi_text subpatch in the help file actually leaks as well (with no js), just much more slowly because it's rendering only 8 blocks of text at only 10fps. If I change the patch to render 300 text blocks at 50fps it leaks at the same rate as my js version.
I've emailed C74 support, but does anyone have any suggestions in the meantime?
I'll attach my modified version of the patch from the help file.