High CPU usage while playing Flash and using Jupiter

Change all the colordepths in my /etc/X11/xorg.conf to 24 bit. Both 32 and 16 bit had the problem, but 24 bit works.

I noticed a lot of errors about defaultdepth 32 which prompted me to change it.

Also, I'm using the nvidia binary driver and I added the following options at the same time, not sure if they helped or not:

Option "AddARGBGLXVisuals" "True" Option "DisableGLXRootClipping" "True"

Now my cpu is finally back to normal and compiz is much more responsive than it ever was before!

source: http://ubuntuforums.org/showthread.php?t=1873768