Array limit
Hey!
I was trying to create an array with 100k items and it turned out I got a "const limit" error.
23:35:29 [Scenarium] RangeError: const limit (line 1) at [anon] (data.js:1) internal
If I do 40k items or so it seems to work. I don't think the memory usage is an issue as I was able to create some other sort of data structure to use these 100k items in my lenses.
Do you know why such large array or dictionaries return a "const limit" error on the console?
My solution to this was simply to use another language to print 1000s of variable declarations and copy paste into my lens studio script.
So instead of declaring an array with 100k items I declared 1000s of variables each with a few items in them.
thanks
Marco,
Limit is short int maximum value, which is 65535.
Thank you,
Pavel