Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: Howto: Using Compton for tear-free compositing on XFCE or LXDE

  1. #11
    Join Date
    Sep 2012
    Beans
    2

    Re: Howto: Using Compton for tear-free compositing on XFCE or LXDE

    Brilliant! Finally no more video tearing!

    I'm on a Xubuntu 12.04 with Nvidia driver v311. Tested with VLC, MPlayer and YouTube (old Flash v11.2.202) - only minor glitches left in YouTube playback, possibly because of streaming jitter rather than vsync problems.

  2. #12
    Join Date
    May 2006
    Location
    Milwaukee,WI
    Beans
    6,254
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Howto: Using Compton for tear-free compositing on XFCE or LXDE

    this did not resolve my screen tearing I am getting in minecraft. I am running Xubuntu 14.04 with Nvidia driver 337.25 with an EVGA GTX 760 SC. I think i've now tried every possible solution i came across on the web. Anyone else have any other ideas to solve this tearing i'm getting?

    UPDATE: i hadn't disabled Xubuntu's built in compositing in order to get Compton to work, also the -b switch results in an error so to run compton within Xubuntu 14.04 64bit I just issue compton and that's it. This resolved my tearing I was getting in Minecraft. THANKS
    Last edited by dannyboy79; May 31st, 2014 at 11:26 PM.
    Check out my Blog about my life and computer software and hardware. http://ubuntuaddicted.blogspot.com/
    My YouTube channel:
    http://www.youtube.com/ubuntuaddicted

  3. #13
    Join Date
    Oct 2011
    Beans
    1

    Re: Howto: Using Compton for tear-free compositing on XFCE or LXDE

    Using compton with your configuration did fix all of my tearing problems, but it also caused a LOT of lag when dragging windows. I have an Nvidia GTX 570 with 2.5G of vram, so moving 2D windows around the screen should not have any noticable performance issues. This led me to believe that it was a problem with the settings. So, I messed with the compton config a bit and found a different set of options that worked much better for me:

    Code:
    #--------------------------------
    #-------Backend Settings:--------
    #--------------------------------
    backend = "glx";                 # Use GLX backend for rendering
    vsync = "opengl";                # Use OpenGL to implement vsync
    glx-swap-method = 3;             # Use a triple-buffer
    paint-on-overlay = true;         # Improves performance (usually) and reduces flickering
    glx-no-stencil = true;           # Improves performance
    glx-no-rebind-pixmap = true;     # Improves performance with rapid window changes, might not work with some drivers
    
    
    #--------------------------------
    #--------Shadow Settings:--------
    #--------------------------------
    shadow = true;                   # Enable drawing shadows on windows
    shadow-radius = 8;               # The blur radius for shadows
    shadow-offset-x = -8;            # The horizontal offset for shadows
    shadow-offset-y = -8;            # The vertical offset for shadows
    clear-shadow = true;             # Zero the part of the shadow's mask behind the window, may break some applications
    no-dock-shadow = true;           # Do not draw shadows on docks/panels
    no-dnd-shadow = true;            # Do not draw shadows on DND windows
    shadow-exclude = [               # Do not draw shadows on these specific applications:
       #"! name~=''",
        "n:e:Notification",
        "n:e:Plank",
        "n:e:Docky",
        "g:e:Synapse",
        "g:e:Kupfer",
        "g:e:Conky",
        "n:w:*dockbarx*",
       #"n:w:*Firefox*",
       #"n:w:*Chrome*",
       #"n:w:*Chromium*",
        "class_g ?= 'Notify-osd'",
        "class_g ?= 'Cairo-dock'",
        "class_g ?= 'Xfce4-notifyd'",
        "class_g ?= 'Xfce4-power-manager'"
    ];
    
    
    #--------------------------------
    #--------Fading Settings:--------
    #--------------------------------
    fading = true;                   # Enable fading windows during opacity changes
    fade-delta = 4;                  # The time between steps in a fade in milliseconds
    fade-in-step = 0.03;             # The opacity change between steps while fading in
    fade-out-step = 0.03;            # The opacity change between steps while fading out
    detect-client-opacity = true;    # Prevent opacity from being ignored for some applications
    
    
    #--------------------------------
    #--------Window Settings:--------
    #--------------------------------
    wintypes:                        # Change behavior for these specific types of windows:
    {
        tooltip = { fade = true; shadow = false; };
    };
    

    Although this configuration works very well for me, it might not work well for everyone. Some of the options, such as triple buffering, can dramatically decrease performance on graphics cards without enough vram. Also, I am using the proprietary nvidia driver v331.79. These options might not work well (or at all) with nouveau drivers.

  4. #14
    Join Date
    Jul 2014
    Beans
    6

    Re: Howto: Using Compton for tear-free compositing on XFCE or LXDE

    i've notced that when i leave my computer on for a couple of days (maybe 2-3) xorg stays at a high cpu and then UI interaction gets sluggish (slow to move windows, etc)


    i kill and then restart compton then everything is ok again.


    anyone else have this issue and/or know what's happening?

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •