I have a GTX 750 ti and I'm using Ubuntu 18.04. I have never had problems before with graphics drivers not working well. So before I installed drivers, I was getting massive amounts of screen tearing and lag. Afterwards, I still notice a lot of lag in animations (clicking "Show Applications", maximizing windows, minimizing windows, etc.) and sometimes when moving windows around or resizing them. When scrolling through web pages on browsers it will lag and I notice screen tearing. I have tried installing many different drivers, including the nvidia-375 and nvidia-384 drivers that are in the default Ubuntu repository. I also tried using drivers from the Graphics Drivers repo (https://launchpad.net/~graphics-drivers/+archive/ubuntu/ppa). No matter what I do, it never gets rid of lag in the animations or screen tearing within browsers.
OK now i can say this is 95% solved,
∘ 1/ The real problem comes down to Refresh Rate and Sync Rate of the Nvidia card and the screen(s)
‣ With nvidia-prime then there is no possibility of vsync yet - arghhhh
With Nvidia's drivers for linux and"Optimus" cards they left out the simple code to do this to save resources for the masses - STUPID!!!!!
‣ Get PRIME Synchronization on Optimus
Solution (now for none specific Nvidia Drivers - AWESOME!)
To check if it (Synchronization) is set or not set use this command:
sudo cat /sys/module/nvidia_drm/parameters/modeset
sudo gedit /etc/modprobe.d/nvidia-drm-nomodeset.conf
∘ and make sure the following line is present;
sudo update-initramfs -u
• rebootALSO reducing Swappiness may help to lower swappiness also (if you have lots of RAM)...
∘ To check the swappiness value (default=60)
sudo gedit /etc/sysctl.conf
‣ Search for vm.swappiness and change its value as desired. If vm.swappiness does not exist, add it to the end of the file like so: