@WeatherVane ah I wasn't aware of Code Review, sorry. With regards to absoluteDiff++/previousFrame++: it is expected to happen frameWidth * frameHeight * 4 times. So a lot of times. The previousFrame/currentFrame is laid out in the format [a,r,g,b,a,r,g,b,a,r,g,b...]. With the absoluteDiff++/previousFrame++ statements I am effectively moving forward in those arrays. —
ImJustACowLol 50 secs ago