We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I've been working on a sketch that visualises 1d cellular automata. I've been making lots of calls to rect(). I notice that when I'm making about 1200 calls in my inner loop, my frameRate drops to ~30 fps, then props proportionately from there. What is best way around this? Do I do it (proverbially) by hand with loadPixels()/updatePixels()? Is there a better way? I'm going to need far more than 1200 cells.
Answers
Use a PImage, it's basically (technically not but you know what I mean) just a grid of rectangles (code taken from my reply on another thread):
You could even use the PImage's pixels array for your cellular automata.