We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I have roughly 54 objects that have a function to draw rect() in draw(). So I have loop from 0 to 54 that do calculation to call the object function to draw rectangle for every frame. This caused the frameRate for this sketch dropped to 5.
Is there anyway so that I can update 54 objects or more that draw itself without reducing frameRate. I have been thinking to use multithreading but it always return null pointer exception in rect() and then the sketch runs but behaves very weird. What to do?