Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Fix video tearing
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
grant123
l33t
l33t


Joined: 23 Mar 2005
Posts: 980

PostPosted: Fri Feb 07, 2014 7:40 pm    Post subject: Fix video tearing Reply with quote

Is there a generic way to reduce or eliminate video tearing? I'm using xf86-video-omap on my Pandaboard and I don't think there is an omap-specific way to do it.
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Sat Feb 08, 2014 9:02 am    Post subject: Reply with quote

Try compton, I suppose.
Back to top
View user's profile Send private message
Logicien
Veteran
Veteran


Joined: 16 Sep 2005
Posts: 1360
Location: Montréal

PostPosted: Sat Feb 08, 2014 12:26 pm    Post subject: Reply with quote

One technique is to synchronise the video buffers with the vertical refresh of the screen. The video refresh rate will not be higher than the vertical refresh of the screen. It can reduce performance but help to advoid tearing. You can set in your ~/.drirc and/or /etc/drirc
Code:
<driconf>
   <device screen="0" >
      <application name="all">
         <!-- Always synchronize with vertical refresh to avoid tearing -->
         <option name="vblank_mode" value="3"/>
      </application>
   </device>
</driconf>

In plus you can set in your ~/.bashrc (who should be include in ~/.bash_profile)
Code:
export vblank_mode=3

I read that
Code:
vblank_mode=0 mean disabled by default
vblank_mode=1 mean application choice, but enabled by default
vblank_mode=2 mean application choice, but disabled by default
vblank_mode=3 mean enabled by default


Check the options of the Omap Xorg video module. It may have one related to Vblank Mode that can be usefull to activate.
Code:
man omap


If you use Kde, enable Opengl version 3 in the settings.

A last point, the framebuffer in use by the kernel may have something to do with tearing. I never use the Omap Xorg module, but it may be more performant with one kernel framebuffer than an other.
_________________
Paul
Back to top
View user's profile Send private message
grant123
l33t
l33t


Joined: 23 Mar 2005
Posts: 980

PostPosted: Sat Feb 08, 2014 3:33 pm    Post subject: Reply with quote

Logicien, thank you for that but I couldn't get that stuff to help.

PaulBredbury, you gave me the idea to turn on the xfce4 compositor which does significantly reduce tearing but doesn't eliminate it. Is compton likely to be better? I don't have 3D hardware acceleration.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum