View Full Version : Problem with flickering
japan1
06-08-2008, 11:39 AM
I'm getting lots of flickering in any 3d app I open when my ATI 2900GT is installed, but not when I tried a 7900GS. I havn't got compiz or any other window manager installed. I'm using drivers which Ubuntu downloaded when I clicked 'enable' under hardware devices. Any Idea's on how to stp it flickering?
Here's my pc if it helps:
E2160 @2.7Ghz
2gb ram
320gb HDD
Sapphire 2900gt
ubuntu 8.04lts
bridgman
06-08-2008, 12:09 PM
Are you sure you don't have compiz running ? Can you turn off desktop effects just to be sure ?
Ubuntu automatically enables Compiz when you crank up the desktop effects if the driver supports it, at least it does on my system.
japan1
06-08-2008, 12:40 PM
I've just completely disabled desktop effects and its just about worked, there's still the occasional flicker but I can live with it. Is there any way I can use compiz and a 3d app at the same time?
bridgman
06-08-2008, 12:55 PM
There are a couple of options :
1. There is a compiz option to "disable redirect on fullscreen" - if you turn that on and run your 3d apps fullscreen that will avoid the flicker.
2. Some folks wrap their 3d apps in a script which disables compiz when starting the app and re-enables it after the app finishes. It has pretty much the same effect as #1 above but also works for windowed apps.
3. Most apps for Linux today use direct rendering (DRI) rather than indirect rendering (AIGLX) because it can run a bit faster and because AIGLX was not generally available until recently. My understanding (not tested) is that if the app uses AIGLX instead of DRI then you can run without flicker, but very few apps seem to offer that option.
The issue here is that the DRI infrastructure in X doesn't fully support redirected 3d today. There are a couple of related initiatives -- DRI2 and RDR (Redirected Direct Rendering) -- which will allow the output from a 3d app to be composited rather than fighting with the compositor as happens today. You get flicker because the 3d app and compiz are both drawing to the same area of the screen.
In a perfect world it would be possible to simply tell Compiz "don't redraw the portion of the screen where my 3d app is running", but I haven't seen any real discussion about that. I imagine this is because most feel that DRI2 and RDR are sufficiently close that pursuing another approach in parallel is not worth the effort.
seanbarman
06-10-2008, 10:03 AM
Nvidia managed it!
adamk
06-10-2008, 02:04 PM
There are a couple of options :
1. There is a compiz option to "disable redirect on fullscreen" - if you turn that on and run your 3d apps fullscreen that will avoid the flicker.
That has *never* worked for me. The explanation from onestone (compiz developer) is that the 3d applications were never redirected in the first place, and you can't unredirect something that hasn't been redirected in the first place :-)
Adam
bridgman
06-10-2008, 02:33 PM
Agreed, they're not redirected in the first place but that's not the point... Compiz acts like they're being redirected and draws "something" on top of the app. That's what I was told anyways ;)
adamk
06-10-2008, 02:48 PM
For me, if I have anything under the opengl windows that is regularly redrawing (ie. a terminal with top) that option doesn't do any good.
Adam
bridgman
06-10-2008, 03:23 PM
Interesting -- so that even causes problems when the opengl window is fullscreen ? I had always thought of "fullscreen" as also meaning "exclusive", but maybe that only holds true for Windows.
One more item for my ever-growing list of "things to play with" :(
adamk
06-10-2008, 05:30 PM
Yes, even when fullscreen :-)
bridgman
06-10-2008, 08:26 PM
Yes, even when fullscreen :-)
OK :confused:
Melcar
06-11-2008, 05:24 PM
Yup. The whole fullscreen thing doesn't really work. I guess it should in theory, but for me it never works.
Dandel
06-11-2008, 06:47 PM
Japan1, can you post a copy of your xorg config file by any chance, and which video player are you using?
japan1
06-12-2008, 09:42 AM
Japan1, can you post a copy of your xorg config file by any chance, and which video player are you using?
How would I make a copy of an xorg file? I havn't noticed any flickering in video playback, just any 3d app including wine etc.
adamk
06-12-2008, 09:45 AM
The file he asked for is /etc/X11/xorg.conf
Adam
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.