If you experience screen flickering at random times you can try adding
(for copy&paste check the “)
to /etc/modprobe.d/nvidia-kernel-nkc (Ubuntu) in order to fix some timer problems between the driver and compiz-fusion.
It took me a long time to finally see this solution here: