From owner-freebsd-x11@FreeBSD.ORG Sun Nov 20 22:37:03 2005 Return-Path: X-Original-To: freebsd-x11@freebsd.org Delivered-To: freebsd-x11@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ED5AB16A41F for ; Sun, 20 Nov 2005 22:37:03 +0000 (GMT) (envelope-from h.nieser@xs4all.nl) Received: from smtp-vbr11.xs4all.nl (smtp-vbr11.xs4all.nl [194.109.24.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6335B43D45 for ; Sun, 20 Nov 2005 22:37:03 +0000 (GMT) (envelope-from h.nieser@xs4all.nl) Received: from [192.168.1.10] (nieser.net [194.109.160.131]) by smtp-vbr11.xs4all.nl (8.13.3/8.13.3) with ESMTP id jAKMb1ov082011 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 20 Nov 2005 23:37:02 +0100 (CET) (envelope-from h.nieser@xs4all.nl) Message-ID: <4380FA8D.50107@xs4all.nl> Date: Sun, 20 Nov 2005 23:37:01 +0100 From: Hans Nieser User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051106) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-x11@freebsd.org References: <437E8B98.8090700@nieser.net> <437F6D7A.9070401@xs4all.nl> In-Reply-To: <437F6D7A.9070401@xs4all.nl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by XS4ALL Virus Scanner Subject: Re: nvidia X driver and OpenGL performance problem X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Nov 2005 22:37:04 -0000 Hans Nieser wrote: > Hans Nieser wrote: > >> Hi list, >> >> Recently I've been trying out games such as the Doom 3 demo (Linux >> binaries), Quake 2, Quake 3 Demo (Linux binaries) and the new Quake 4 >> port (also Linux binaries) under FreeBSD, and although they run >> without any errors or visual oddities, the performance has been >> somewhat dissappointing - they all run about 3 to 4 times slower than >> they do on Windows and are hardly playable (except for Quake 3 / 2, >> but those obviously require much less of the video hardware). This >> seems to be the case with all OpenGL games / apps. glxgears with its >> default settings (that is, I just typed 'glxgears' with no options) >> renders about 7200 FPS on average. > > Well here's an interesting twist; when I log into X/Gnome as root, the > games run a heck of a lot smoother (note that su/sudo doesn't have the > same effect, I really have to login as root). Quake 4 went from 10-20 > fps in the first level to 40-50 fps on average. > > I'm guesssing however that playing games as root (online games, that is) > might not be a good idea. Now I just need to figure out what exactly > makes games run slower for non-root users. To continue my monologue, it seems I was either mistaken about improved performance when running OpenGL apps as root (I guess I should start doing real benchmarks), or it was some kind of fluke as I have been unable to reproduce it. I've been told by an individual in #nvidia on freenode IRC that PCI Express cards run at the speed of the normal PCI bus in FreeBSD because it doesn't have complete support for PCI Express yet, and conseuently, neither does the nvidia FreeBSD driver. Although this would certainly explain my troubles, after numerous searches on google on FreeBSD and PCI Express I have been unable to confirm the above. Could anyone shed some light on this? Should I give up trying to get my OpenGL apps to perform like they should as PCI Express is simply not fully supported (yet)?