You think it's possible to implement my physics code into that and it's gona run a quadrillion times faster?
Yes - I'm sure of it - and way beyond. Kjell did an excellent job on the basic shader for this.
You should be able to figure it out from there - I can't wrap my head around your physics code. I'm looking forward to seeing a GPU version of your preset.
To put it in perspective:
Currently,
your preset 64x64 with lots of arrays and calculations is running at ~ 6 FPS on the CPU
Here processing
256x256 image
capped out > 60 FPS, but still not as demanding as your script
Pushing the envelope - 16x the size of the array you were using goes beyond you performance needs. This can't even run on the CPU.
1024x1024 capped out > 60 FPS
HD Video 30 FPS --> to 256x256 x 30 images/sec
Is still going at 40-50 fps