Le blog de Olivier Crête

Categories

Me

My Planets

Projects

Archives

March 2011
M T W T F S S
« Jul   Aug »
 123456
78910111213
14151617181920
21222324252627
28293031  

RSS 2.0


Log in

Adventures in the shell

After months of envy, I decided that since GNOME 3 is to be released in almost two weeks, it was time to try it out. I must say that is is pretty damn cool. Yes, it has a few annoying bugs and glitches, but nothing out of the ordinary for a first release. It is definitely going in the right direction.

That said, we’re in 2011, and it’s still impossible to use OpenGL on two monitors without tearing. How incredible is that! The thing is, my second monitor is a 50″ Plasma TV and I really hate tearing there when I watch a movie. So when I have two monitors, I want the VSync to be on the second monitor. Luckily NVidia (yea sorry) has an environment variable to select which monitor an OpenGL application syncs on, the annoying thing is that this has to be set before the application is started. So after a little messing around with Looking Glass (which is pretty amazing), I was able to set the variable into the shell and have it re-exec itself. After getting that to work, I couldn’t resist writing an extension to do it for me. Be warned that if you switch screens at runtime, you also want to apply the patch from bug #645408 for now.

Update: I’ve been informed by our very own Daniel Stone that free drivers are better and can actually do the VSync correctly.

4 answers to “Adventures in the shell”

No avatar

You probably want to set that variable in your .xsessionrc then!

No avatar

I guess in the current case yes.. my original plan was to make it switchable..

[...] attivare il VSync, a patto di modificare ogni volta la configurazione dal pannello. Perciò, Crête ha realizzato uno script per rendere l’operazione più [...]

[...] attivare il VSync, a patto di modificare ogni volta la configurazione dal pannello. Perciò, Crête ha realizzato uno script per rendere l’operazione più [...]

 

This page is XHTML 1.0 Strict and CSS level 3