View previous topic :: View next topic |
Author |
Message |
grant123 Veteran
Joined: 23 Mar 2005 Posts: 1092
|
Posted: Fri Feb 07, 2014 7:40 pm Post subject: Fix video tearing |
|
|
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 |
|
|
PaulBredbury Watchman
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Sat Feb 08, 2014 9:02 am Post subject: |
|
|
Try compton, I suppose. |
|
Back to top |
|
|
Logicien Veteran
Joined: 16 Sep 2005 Posts: 1555 Location: Montréal
|
Posted: Sat Feb 08, 2014 12:26 pm Post subject: |
|
|
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.
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 |
|
|
grant123 Veteran
Joined: 23 Mar 2005 Posts: 1092
|
Posted: Sat Feb 08, 2014 3:33 pm Post subject: |
|
|
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 |
|
|
|