View Single Post
Old 01-07-2010, 10:32 AM   #29
Human being with feelings
Join Date: Sep 2009
Posts: 107

It looks like the maximum number of envelope points I can retrieve with an extension is 629 points. Trying to extract more crashes reaper, with a "Memory could not be 'written' at address 0x********"

It seems Reaper has no problem having more than 629 envelope points. So it's probably a limitation of the size of the chunk RPR_GetSetEnvelopeState can return. At 629 points the string/chunk returned is 15742 characters long.

I'm not saying the limit should be changed. 629 is more than enough for anyone I guess.

On the good side of news, my envelope extraction function (which performs some regular expressions on the chunk) stores all the envelope data and points data in separate dictionaries pretty fast. Around ~20 milliseconds for 629 points, if cProfiler is to be trusted.
Malevol3nt is offline   Reply With Quote