KA ProcessingJS Max Infinite Loop Count is Too Short
Right now it is extremely difficult to get even relatively basic simulations to run in Khan Academy's ProcessingJS editor without going over the _env_.KAInfiniteLoopCount limit, causing the project to freeze and display an error message saying that a loop is taking too long to run.
Early into the development of my current project, I ran into this problem, and I had to solve it with a really annoying workaround: I made it so that if you click on the screen, it tells the draw function to stop looping, then immediately start looping again.
The way I propose this problem be fixed is by adding the ability to modify the limit variable, at least up to maybe 5000 iterations, aka 5 times the current limit. Maybe even make an option to ignore some errors, such as '==' not being allowed at all.
Please sign in to leave a comment.