This procedure was written for Ubuntu 14.04
Open the terminal and enter the following command:
gksudo gedit /etc/profile
Paste the following into the end of the config file:
Log out of KDE and log back in.
Open a CLI and do:
Set your screen resolution and refresh rate in the Xserver settings (I set mine to 1920×1200 @60hz) and save it to xorg.conf
sudo nano /etc/X11/xorg.conf
Edit the device section thusly:
VendorName “NVIDIA Corporation”
BoardName “GeForce GTX 650”
Option “RegistryDwords” “PerfLevelSrc=0x2222”
Option “TripleBuffer” “True”
This sets the card to performance mode and enables triple buffering.
In nvidia-settings/OpenGL set:
Sync to Vblank
Use Conformant Texture Clamping
Save your configuration and restart the X-server.