Fixing screen tearing

I’ve been noticing that when i scroll down pages, watch videos and play games, sometimes the screen tears. How can i fix that without any drawbacks?

What card, what browser, what compositor?

I have an integrated card (intel hd graphics 620), brave browser, picom

Have you enabled vsync in your picom configuration? And, assuming you’re on X11, you can also look at your Xorg configuration and add/modify this section:

Section "Device"
    Identifier    "Intel iGPU"
    Driver        "modesetting" # or use "intel" here if you're using the older driver
    Option        "ShadowFB" "false" # you don't need on recent hardware
    Option        "TearFree" "true"
EndSection

No, i havent enabled that. I cant even find the picom config file, also, isnt tearfree bad for gaming?

Update: i found the picom config file, but i dont have the xorg.conf one, only a directory named xorg.conf.d

Inside, there is these 3 files:

00-keyboard.conf

10-evdev.conf

40-libinput.conf

None of them have the device section and idk where im supposed to add that section

For picom you can easily just enable the vsync option if you’re using the declarative approach via services.picom.vSync. If not, just create the file $HOME/.config/picom/picom.conf with the contents from picom/picom.sample.conf at 6d676824c457a933c52e3e92c5a1856466f90545 · yshui/picom · GitHub and enable vsync.

And if you choose to go the xorg configuration route, you can just enable the services.xserver.enableTearFree option if you don’t care about ShadowFB, and if you do, use services.xserver.deviceSection instead to add the 4 lines I pasted above.

great! thank you for your help!