I've been having the same problem for a while now, it happens intermittently. I was on sierra, but downgraded to el capitan again, but the problem is still there. I thought it was my monitor as I bought it at the same time the problems happened. Good to know that it might just be a software problem. I have win10 on a bootcamp partition, and i haven't seen any flicker there.