I've already applied all of those settings in xorg.conf and kwin.sh, and the stutters still doesn't seem to go away. The kwin.sh tweaks, however, did eliminate tearing, which is a totally different thing I'm no longer worried about.
In the meantime, I decided to try out breeze-enhanced-git from the AUR yesterday, which I find it more of a workaround than a solution. Since it's obviously based on Breeze, the stuttering frequency appears to be the same (less than using any Aurorae theme) as if I were to use the built-in vanilla Breeze window decoration.
I just rebooted with the option applied. It did nothing to mitigate the whole desktop stuttering, but the cursor stutters seems to have disappeared on its own. Since I'm using Breeze Enhanced for my window decoration theme, I had to switch back to the Aurorae-based Materia Dark theme to see if the stutters got reduced, and it appears that there's no change in that department.
Out of curiosity, I decided to look into journalctl logs and found lots of errors similar to the following, all of which are from around the same time the stutters occurred:
kwin_x11: file:///usr/share/kwin/aurorae/MenuButton.qml:22: TypeError: Cannot read property 'closeOnDoubleClickOnMenu' of null
kwin_x11: QPainter::begin: Paint device returned engine == 0, type: 3
kwin_x11: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 33804, resource id: 39868243, major code: 2 (ChangeWindowAttributes), minor code: 0
The XCB error message seems to occur less frequently when I use Breeze (Enhanced). It also turns out that someone already mentioned about those messages in this forum years ago:
Another topic said those messages appear every time they close a window:
So, I guess that those XCB error messages seem to be irrelevant to the stutters I'm getting, but maybe those Aurorae errors spamming my journalctl logs could be behind the more noticeable stutters when using those kinds of window decorations.
Sorry for the long reply back. I tried all available ports on my GPU (3x DisplayPort, 1x HDMI), and none of them made a difference with the stutters. I didn't restart each time I switched ports because I believe that the stutters are more of linked to rendering stuff on screen rather the overall output. So, if the output was causing the stutters in the first place, my cursor would still stutter after toggling any of the Composition Pipeline checkboxes in Nvidia X Server Settings.
Sidenote: My monitor only supports HDMI for digital input (my GTX 1060 doesn't provide analog VGA output), so I've been using a DP-to-HDMI cable to connect the monitor to my PC.
You have to save that config and restart the xorg, aka reboot the system with the new config to take effect.
Please share: cat /etc/X11/mhwd.d/nvidia.conf
as it seems to me you are doing things the Windows way ...
Well, you're kind of right because it's true I'm not yet in the ranks of you and other frequent helpers here as an advanced desktop Linux user yet. And what I mean by toggling the checkboxes on and off is this: I (un)check at least one of the two Composition Pipeline checkboxes, click Apply, click Yes on the confirmation dialog that appears, and repeat. I'm aware my language is weird at times, but does that make sense to you now?
Anyway, here is /etc/X11/mhwd.d/nvidia.conf (I haven't touched it yet):
I don't think you mentioned /etc/X11/mhwd.d/nvidia.conf till now, but after applying the changes above (the login screen failed to show the first time, so I added the missing EndSection at the end), it turns out it reintroduced screen tearing until I enabled Force Composition Pipeline. (Both of those options were unchecked when I opened Nvidia X Server Settings.) I also made sure that any mention of metamodes are commented out in xorg.conf and xorg.conf.d/20-nvidia.conf.
Despite all this, there's zero change with the stuttering.
Also, here is my /etc/profile.d/kwin.sh file, and its permissions are 755:
When i point to a topic, that topic has a context. Should i mention to read it, or actually repeat everything all over again?
Now where did you get that file? Who mentioned it? No, you have to REMOVE those, not just comment things.
In /etc/X11/xorg.conf.d/ you have to have two files 00-keyboard.conf and 90-mhwd.conf by default when installing proprietary nvidia drivers.
The 90-mhwd.conf is a symlink to /etc/X11/mhwd.d/nvidia.conf, editing it will edit the actual file.
No need. Let's see if now we get somewhere. There should be no tearing of any kind. Honestly.
I made /etc/X11/xorg.conf.d/20-nvidia.conf as part of instructions in the ArchWiki a couple days after I installed Manjaro in February. I probably did this to troubleshoot the screen tearing issues, but I can't remember exactly.
Again, I'm not worried about the tearing part, since I've already figured that out before starting this thread, but I'm baffled with the fact your modified nvidia.conf above reintroduced it with "Force Composition Pipeline" and "Force Full Composition Pipeline" unchecked in the X Server Settings.