Tesla P40

Hello, I have an Xserver running on a P40 and it’s working fine except when I run glxgears the fps go up to 9 or 10 thousand and and the whole desktop becomes unusable. I’v been trying everything I can think of to the the fps to be 60 but nothing seems to work. An ideas how to get the fps down to 60? Thank You.