{"id":5915,"date":"2020-04-02T21:52:27","date_gmt":"2020-04-02T19:52:27","guid":{"rendered":"http:\/\/www.kameli.net\/marq\/?p=5915"},"modified":"2020-10-29T08:29:13","modified_gmt":"2020-10-29T06:29:13","slug":"marco-compositing-and-nvidia","status":"publish","type":"post","link":"http:\/\/www.kameli.net\/marq\/?p=5915","title":{"rendered":"Marco, compositing and Nvidia"},"content":{"rendered":"\n<p>It&#8217;s quite a mess for MATE desktop users who have Nvidia at the moment. The default software compositor \u2013 required for window shadows \u2013 doesn&#8217;t play nicely together with Nvidia&#8217;s idea of the vsync, and thus there&#8217;s nasty tearing almost everywhere, maybe apart from fullscreen games. Using Nvidia&#8217;s own compositor solves this issue, but having them both on at the same time is detrimental to game framerates and causes unnecessary stutter.<\/p>\n\n\n\n<p>Here&#8217;s a little script I made to remedy the issue to a certain extent. Call it <em>compositor.sh<\/em> or whatever you see fit, and then use it with on\/off to turn compositing on or off. Even better when bound to hotkeys that let you quickly switch between a tearfree good-looking desktop mode and a fast game mode:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">#!\/bin\/sh\ncase $1 in\non)\n    gsettings set org.mate.Marco.general compositing-manager true\n    nvidia-settings --assign CurrentMetaMode=\"nvidia-auto-select +0+0 { ForceFullCompositionPipeline=On }\"\n    ;;\noff)\n    gsettings set org.mate.Marco.general compositing-manager false\n    nvidia-settings --assign CurrentMetaMode=\"nvidia-auto-select +0+0 { ForceFullCompositionPipeline=Off }\"\n    ;;\nesac<\/pre>\n\n\n\n<p>It of course needs to be executable too (<em>chmod a+x compositor.sh<\/em>) and preferably in the path.<\/p>\n\n\n\n<p><em>edit: In case this doesn&#8217;t work for you, see the <a href=\"http:\/\/www.kameli.net\/marq\/?p=6141\">newer version<\/a> of the script.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>It&#8217;s quite a mess for MATE desktop users who have Nvidia at the moment. The default software compositor \u2013 required for window shadows \u2013 doesn&#8217;t play nicely together with Nvidia&#8217;s idea of the vsync, and thus there&#8217;s nasty tearing almost everywhere, maybe apart from fullscreen games. Using Nvidia&#8217;s own compositor solves this issue, but having [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,24],"tags":[],"class_list":["post-5915","post","type-post","status-publish","format-standard","hentry","category-linux","category-softat"],"_links":{"self":[{"href":"http:\/\/www.kameli.net\/marq\/index.php?rest_route=\/wp\/v2\/posts\/5915","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.kameli.net\/marq\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.kameli.net\/marq\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.kameli.net\/marq\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.kameli.net\/marq\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5915"}],"version-history":[{"count":5,"href":"http:\/\/www.kameli.net\/marq\/index.php?rest_route=\/wp\/v2\/posts\/5915\/revisions"}],"predecessor-version":[{"id":6143,"href":"http:\/\/www.kameli.net\/marq\/index.php?rest_route=\/wp\/v2\/posts\/5915\/revisions\/6143"}],"wp:attachment":[{"href":"http:\/\/www.kameli.net\/marq\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5915"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.kameli.net\/marq\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5915"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.kameli.net\/marq\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5915"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}