PDA

View Full Version : For all those nVidia users with Direct Rendering and choppy Compiz


s0lidnuts
October 15th, 2007, 05:18 PM
Well.. I used Beryl for a long time, it worked perfectly for me although the slow window resizing, but it never got a slow pointer or something like that, so I never got worried.
But now with Compiz-Fusion, when I did any CPU intensive task like Software Manager on OpenSuse 10.3 (Yast), Compiz got REALLY laggy, then I got here on the forum, did read some topics, etc..
But I didn't find a solution to my problem.. So I saw a tool on some website, the name is opensuse-xgl-config or something like that, this tool has the purpose of helping on setting up a nice 3D desktop for suse.

But now, the interesting part =P

The tool has a button to activate XGL + Compiz, what is the real solution.
I never used Beryl with XGL because I have a nVidia card (6600GT), and when I started with these fancy 3D effects, the nVidia driver that would do the job was already on beta.
But well, let me get to the solution: Enable XGL. o_O
Now I got no freezings, everything runs perfectly, and on Compiz benchmark I get a 100% boost on my FPS (300 -> 600 now).

I dunno if there is another topic on this forum with the solution, but on my search, I've read 10+ topics and none had this solution, so I'm posting here for anyone who needs to solve this problem =P Guess that's it, and thanks for Compiz =D

PS.: XGL also solved the resizing problem, it's very smooth now =P
NO to Direct Rendering.

---
Sorry for any english errors on the post.

Eck
October 15th, 2007, 05:47 PM
Yeah but, most people enjoy using their cards for 3D games as well. It's interesting that you have Compiz running more stable like using XGL but isn't it a pain in the neck that you need to disable it and reboot to play games? Plus, mplayer gets along better with NVidia GLX than XGL as well. Since I hated that X11/xshm setting, I would also turn off XGL and reboot just to play videos too.

I guess I'm just one of the lucky ones that don't experience the choppiness with NVidia GLX. It's not perfect of course. A current problem that will be solved with the next driver release is that after a while video playback will turn into a kaleidescope of colors. Gotta restart X to fix it. (Ctrl-alt-backspace fixes it for me.) It's not even a composite desktop (Compiz Fusion) problem. It happens even without composite enabled! Nvidia developers on the nvnews forum say they've isolated the problem and will fix it with a newer driver release. But XGL wouldn't help that one!

gior
October 15th, 2007, 06:45 PM
Wow! XGL+Compiz really solved performance problem! Thanks a lot for that tip!
Thou I still wonder why this might happen? On Suse10.2/Beryl it was opposite.
Concerning OGL apps: Most of serious progs in this fild anyway do not work with "conposite' :mad:

s0lidnuts
October 15th, 2007, 07:21 PM
Well.. I don't play on linux, so I have to ask.. Why does XGL need to be disabled to run games?
Well, I hope they fix it, because it is impossible to work with nVidia GXL currently. I don't like XGL and I've never used, but I need it now =(

PS.: Is there any beta of this new driver ? Release date? =PP

znip
October 15th, 2007, 10:29 PM
Xgl + Compiz Fusion => White cube for me. Is there a solution ? Which version of Xgl do you use ?

s0lidnuts
October 15th, 2007, 11:59 PM
the DVD one I guess
use this to enable Xgl:
- opensuse-xgl-settings, just download it from zypper, it's on XGL Repo.

Moses
October 16th, 2007, 12:17 AM
If I use Compiz without libxorg-sched-yield-hack0 installed, it runs choppy as well. I was told in an old thread last year (?) that this would help, and it did.

s0lidnuts
October 16th, 2007, 12:55 AM
And how to install it ?

kriko
October 16th, 2007, 12:57 AM
Compiz-fusion runs smooth for me with direct rendering, no aditional stuff needed (last time tried xgl eat too much memory), just compiz-fusion from git repository.

@Eck: crappy video goes away by switching desktop resolution, no need to restart X (quit video and press ctrl+alt+"-" and ctr+alt+"+").

s0lidnuts
October 16th, 2007, 01:43 AM
What card, nVidia driver and compiz init options do you have/use ?

kriko
October 16th, 2007, 01:49 AM
Geforce 7600gt on my comp, 6600gt on other. Both computer suffered terrible performance issues with compiz (current stable release), but they were fine with beryl. So I compiled cf from git and it works as it should.

I use fusion-icon to start compiz, I think it starts cf with:
#__GL_YEILD="NOTHING" compiz --replace -ccp &

Eck
October 16th, 2007, 01:56 AM
Hey, I forgot about that +- thing! I had tried using the Krand tray thing. I changed it from 1024x768 to 800x600 and back, then tried the videos again and still got the color mess.

So far only ctrl-alt-backspace has worked for me to get videos back. Or a restart, but that was before I tried the ctrl-alt-backspace. At least that takes a bit less time.

Some games actually run okay with xgl, but many do not detect direct rendering from the fake indirect that XGL provides. I didn't mind it all that much, but am happier overall with NVidia.

Hech, when I used ATI with my x850PRO and even without XGL running there were horribly slow frame rates. But those were drivers circa about a year ago so things may have improved.

I never even tried XGL with NVidia. Did you guys start Compiz with:

export __GL_YIELD="NOTHING"
compiz --replace --sm-disable --ignore-desktop-hints ccp &

And only change xorg.conf with:

nvidia-xconfig --composite

If you added those other lines that used to be recommended with Beryl (and even addargbglxvisuals that still seems to be recommended but I don't add it) then try it without all that stuff if you're using the latest driver.

I only got slowdowns and choppiness with very old versions of Compiz Fusion. Not the original ones, but the next series of upgrades. Then it got fixed again, at least for me.

s0lidnuts
October 16th, 2007, 02:00 AM
I'll try to get Compiz from GIT now, I hope that works =X

Salekh
October 16th, 2007, 08:28 PM
Window resizing VERY slow
http://forum.compiz-fusion.org/showthread.php?t=4719

kriko
October 16th, 2007, 08:49 PM
Someone at nvidia said why it is resizing slow (somewhere at nvidia forums). Use stretch resizing method for workaround.

Salekh
October 16th, 2007, 09:10 PM
But why it is NOT slow on some systems?

I have updated compiz from git, and where are same problem with freezes (when some other process intensively uses cpu).

I think, that using xgl not the solution of the problem.
Compiz should work well with Xorg+NVIDIA drivers!

s0lidnuts
October 16th, 2007, 09:13 PM
So compiz from GIT can be used with nVidia GLX with no problems ?

Salekh
October 16th, 2007, 09:16 PM
I think, no
I have updated compiz from git, and where are same problems with resizing and freezes

s0lidnuts
October 16th, 2007, 10:21 PM
No it's not the solution, but it works for now =)

kriko
October 17th, 2007, 12:15 AM
I think, no
I have updated compiz from git, and where are same problems with resizing and freezes

What freezes, I use compiz from git on 2 computers and there is difference as day and night. Normal resizing however is still choppy, use stretching instead (explained on nvnews why does this tehnically occurs).

All compiz animations troubles are solved and are in git (including mouse stuttering under load).

s0lidnuts
October 17th, 2007, 12:30 AM
n00bie question
what package do I need on suse to get aclocal ? git compiling wants that =/
don't that come with autoconf ?

adamk
October 17th, 2007, 12:34 AM
automake, not autoconf :-)

Adam

s0lidnuts
October 17th, 2007, 01:38 AM
I compiled from GIT, but for some reason cube rotation doesn't work.

kriko
October 17th, 2007, 01:42 AM
Have you compiled all plugins? Do you use fusion-icon to start compiz?

s0lidnuts
October 17th, 2007, 01:52 AM
Compiz-Fusion from GIT
Being started with fusion-icon
OpenSUSE 10.3
Compiled with compiz-scripts (./git-get)
Compizconfig-python and CCSM gave me errors about Pyrex and Python2.5
Everything else on compiling seemed to be fine.

Problem: Desktop cube doesn't work. Gives no signal of life while every other plugin runs fine.
nVidia GLX (direct rendering: Yes) with Loose Binding

SOLVED: --prefix=/usr =X, SUSE's 1 click install uses that, so I was having some plugin conflict

Salekh
October 17th, 2007, 07:19 PM
....Normal resizing however is still choppy, use stretching instead (explained on nvnews why does this tehnically occurs)....


I actually don't have a problem with slow resizing but I do have the slow/laggy (un)minimize problem with my 8800GTS like many others with the higher end 8xxx series cards.

http://www.nvnews.net/vbulletin/showpost.php?p=1392960&postcount=9
Why it is NOT slow on some systems?

kriko
October 18th, 2007, 01:44 AM
http://www.nvnews.net/vbulletin/showpost.php?p=1392960&postcount=9
Why it is NOT slow on some systems?

Maybe this is true for 8xxx series, don't know and I probably never will. I am certain that slow resizing is present on 6600gt and 7600gt (tested by me).