Giter VIP home page Giter VIP logo

Comments (24)

yshui avatar yshui commented on August 27, 2024

Can you confirm whether backend = "xrender" works fine?

from picom.

yshui avatar yshui commented on August 27, 2024

And, if you are able to build from source and run, can you test commit 56f7dd3, and see if that works?

from picom.

jeLee6gi avatar jeLee6gi commented on August 27, 2024

Can you confirm whether backend = "xrender" works fine?

I get no artifacts with my config and backend = "xrender"

from picom.

jeLee6gi avatar jeLee6gi commented on August 27, 2024

And, if you are able to build from source and run, can you test commit 56f7dd3, and see if that works?

I'm sorry but I'm confused, how do you build 56f7dd3? It does not contain meson.build files.

from picom.

yshui avatar yshui commented on August 27, 2024

@jeLee6gi That commit is before the meson conversion. You build it by running make.

from picom.

jeLee6gi avatar jeLee6gi commented on August 27, 2024

Oh ...

I ran 56f7dd3 with my original config using the glx backend and I don't get any artifacts.

from picom.

yshui avatar yshui commented on August 27, 2024

I have some guesses. Can you record a trace of compton --config /dev/null --backend glx use apitrace? Thanks.

from picom.

yshui avatar yshui commented on August 27, 2024

And if you can, can you record a trace of compton v2 as well? So we can compare.

from picom.

jeLee6gi avatar jeLee6gi commented on August 27, 2024

I made a mistake earlier, 56f7dd3 still has artifacts for me. I don't get flickering but windows are not redrawn. I accidentally ran it with the xrender backend before, my bad.

Here are the logs for v2 and v3, I tried to keep them short, I hope they are long enough

compton_v2.trace.log
compton_v3.trace.log

from picom.

yshui avatar yshui commented on August 27, 2024

@jeLee6gi As long as the flickering happened when you were capturing the trace, it is good.

from picom.

yshui avatar yshui commented on August 27, 2024

I don't get flickering but windows are not redrawn.

That seems to be a different issue. I will take that as 56f7dd3 fixes the flickering, but has another bug (which is likely to have been fixed by now).

from picom.

yshui avatar yshui commented on August 27, 2024

Oh BTW, I just remembered two things.

  1. Have you tried enabling TearFree as described here: https://wiki.archlinux.org/index.php/intel_graphics#Tearing ?
  2. Have you tried the modesetting driver instead of xf86-video-intel? (not likely to help, try only if you have time to waste).

from picom.

jeLee6gi avatar jeLee6gi commented on August 27, 2024

Looking at my xorg.conf again was a good lead, I had modified mine according to https://wiki.archlinux.org/index.php/intel_graphics#Tearing and https://wiki.archlinux.org/index.php/intel_graphics#DRI3_issues so it looked like this.

Section "Device"
  Identifier    "Intel Graphics"
  Driver        "intel"
  Option        "DRI" "2"
  Option        "TearFree" "true"
EndSection

I took out the fallback to DRI 2 and it seems like it fixes the visual glitches and redraw issues with compton v3 on my end. I do see the problems I had with DRI 3 again though, mostly redraw problems when resizing windows but they are only a minor annoyance.

from picom.

yshui avatar yshui commented on August 27, 2024

Hmmm. So you trace of v2 and v3 looks basically the same. Plus using DRI 2 instead of DRI 3 fixes the problem. I will (tentatively) call this a hardware/driver problem.

Instead of fiddling with how compton uses opengl to find a workaround, I suggest you raise this issue with intel developers, and see if they have better ideas. (And you should report the DRI 3 issue too)

I will keep this issue open in the meantime.

from picom.

jeLee6gi avatar jeLee6gi commented on August 27, 2024

I agree, it sounds like a driver problem now. Thank you for helping me debug this issue, it works for me and from my side this issue is resolved. If I learn more about this issue I will reply in this thread.

from picom.

 avatar commented on August 27, 2024

I use integrated intel graphics too, I don't find any issue, no tearing at all.

from picom.

osleg avatar osleg commented on August 27, 2024

Integrated intel here as well, using modesetting driver instead of intel. No tearing, vsync works like a charm, also i <3 your config :)

from picom.

 avatar commented on August 27, 2024

@osleg : any benefits of using modesettings driver over intel?

from picom.

osleg avatar osleg commented on August 27, 2024

from picom.

 avatar commented on August 27, 2024

@osleg : I have hd630 but enable modesetting driver in /etc/x11... causing much tearing than intel, and according to packages page of archlinux, latest update of xf86-video-intel is 26-Oct-2018: https://www.archlinux.org/packages/extra/x86_64/xf86-video-intel/

Don't know what to think, even upsteam stop contribute, it seems opensource project and still something relevant and work for me.

@jeLee6gi : I have to admit, your config is very good, but you may need blank_mode=0 to speed up.

@yshui : Is Lee config is similar to default? If not how to get default options list of compton?

from picom.

osleg avatar osleg commented on August 27, 2024

Yeah tearimg happens, there are some keys to fix that but tbh the only thing I use to prevent tearing is compton and it works like a charm 😉

from picom.

yshui avatar yshui commented on August 27, 2024

@jeLee6gi Hi, can you test the dri2-hack branch, see if it works without DRI3?

from picom.

jeLee6gi avatar jeLee6gi commented on August 27, 2024

Your hack fixes the flickering under DRI2 on my end too, thanks for investigating and fixing it so quickly!

from picom.

yshui avatar yshui commented on August 27, 2024

Thank @jlindgren90 too, they helped immensely

from picom.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.