You must be registered to see the links
I had a look over it and improved 2 things:
-I only let the sampling happen every 10 frames instead of every frame
-Greatly reduced the sampling complexity algorithm to get the average color of the screen (10 random pixels averaged together instead of every pixel on the canvas). No sliders for it yet.
Seems to look the same as before, but with barely any performance hit and no weird stuttering anymore.
Let me know if that's good for you, because I'm a noob and never worked on a VAM plugin before.