# VSync issues/Tearing in KWin with composite enabled

**URL:** <https://forums.developer.nvidia.com/t/vsync-issues-tearing-in-kwin-with-composite-enabled/35269>\
**Category:** Linux\
**Created:** [October 21, 2014, 2:43pm UTC](https://forums.developer.nvidia.com/t/vsync-issues-tearing-in-kwin-with-composite-enabled/35269 "2014-10-21T14:43:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paviluf](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@Paviluf](https://forums.developer.nvidia.com/u/Paviluf)\
**Post date:** [October 21, 2014, 2:43pm UTC](https://forums.developer.nvidia.com/t/vsync-issues-tearing-in-kwin-with-composite-enabled/35269/1 "2014-10-21T14:43:16Z")

</div>

Hi,

Has you know ([here](https://devtalk.nvidia.com/default/topic/690210/?comment=4125193) and [here](https://bugs.kde.org/show_bug.cgi?id=322060)) there is tearing with Kwin, for more than year at least, if you simply enable composite. Only setting \_\_GL\_YIELD=“USLEEP” avoids this.

So it would be wonderful if this issue can be fixed and I think a lot of people will be happy if you can give us an update on the situation.

Thank you.

---

<div class="post-metadata">

**Author:** ![mamarley](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@mamarley](https://forums.developer.nvidia.com/u/mamarley)\
**Post date:** [October 21, 2014, 9:36pm UTC](https://forums.developer.nvidia.com/t/vsync-issues-tearing-in-kwin-with-composite-enabled/35269/2 "2014-10-21T21:36:55Z")

</div>

The proper solution is to enable triple-buffering.

Section “Device”  
Identifier “Device0”  
Driver “nvidia”  
Option “TripleBuffer” “1”  
EndSection

in your /etc/X11/xorg.conf file.

---

<div class="post-metadata">

**Author:** ![Paviluf](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@Paviluf](https://forums.developer.nvidia.com/u/Paviluf)\
**Post date:** [October 21, 2014, 10:21pm UTC](https://forums.developer.nvidia.com/t/vsync-issues-tearing-in-kwin-with-composite-enabled/35269/3 "2014-10-21T22:21:18Z")

</div>

Ok I tried and it works good.  
Thank you very much.

So is there a bug in Nvidia driver or Kwin ?

---

<div class="post-metadata">

**Author:** ![blackout24](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@blackout24](https://forums.developer.nvidia.com/u/blackout24)\
**Post date:** [October 21, 2014, 11:03pm UTC](https://forums.developer.nvidia.com/t/vsync-issues-tearing-in-kwin-with-composite-enabled/35269/4 "2014-10-21T23:03:42Z")

</div>

Age old Kwin bug.  
[https://bugs.kde.org/show\_bug.cgi?id=322060](https://bugs.kde.org/show_bug.cgi?id=322060)

---

<div class="post-metadata">

**Author:** ![Paviluf](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@Paviluf](https://forums.developer.nvidia.com/u/Paviluf)\
**Post date:** [October 21, 2014, 11:17pm UTC](https://forums.developer.nvidia.com/t/vsync-issues-tearing-in-kwin-with-composite-enabled/35269/5 "2014-10-21T23:17:06Z")

</div>

I didn’t read all the comments but the status of the bug report is UNCONFIRMED.  
I speak with some people on Netrunner forum [here](http://forums.netrunner-os.com/showthread.php?tid=16494&pid=23136#pid23136) who says that is a Nvidia bug.

So I don’t know what is true and it will be good if some Nvidia “official” can answer.

---

<div class="post-metadata">

**Author:** ![blackout24](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@blackout24](https://forums.developer.nvidia.com/u/blackout24)\
**Post date:** [October 22, 2014, 11:33am UTC](https://forums.developer.nvidia.com/t/vsync-issues-tearing-in-kwin-with-composite-enabled/35269/6 "2014-10-22T11:33:41Z")

</div>

The status doesn’t mean much. Thomas Lübking who is a KDE dev is on this for a year now and merges nvidia vsync bug reports into this one.
