From owner-freebsd-x11@FreeBSD.ORG Fri Jun 23 17:29:10 2006 Return-Path: X-Original-To: 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 1FA2416A561 for ; Fri, 23 Jun 2006 17:29:10 +0000 (UTC) (envelope-from eric@anholt.net) Received: from leguin.anholt.net (69-30-77-85.dq1sn.easystreet.com [69.30.77.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id EF64C43D46 for ; Fri, 23 Jun 2006 17:29:08 +0000 (GMT) (envelope-from eric@anholt.net) Received: from leguin.anholt.net (localhost [127.0.0.1]) by leguin.anholt.net (8.13.6/8.13.1) with ESMTP id k5NHSf8v018949; Fri, 23 Jun 2006 10:28:41 -0700 (PDT) (envelope-from eric@anholt.net) Received: (from anholt@localhost) by leguin.anholt.net (8.13.6/8.13.1/Submit) id k5NHSeO1018948; Fri, 23 Jun 2006 10:28:40 -0700 (PDT) (envelope-from eric@anholt.net) X-Authentication-Warning: leguin.anholt.net: anholt set sender to eric@anholt.net using -f From: Eric Anholt To: Mikhail Teterin In-Reply-To: <200606231317.21964@aldan> References: <200606231317.21964@aldan> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-78OGp5RJoTnVaSvFL9kw" Date: Fri, 23 Jun 2006 10:28:39 -0700 Message-Id: <1151083719.18920.5.camel@leguin> Mime-Version: 1.0 X-Mailer: Evolution 2.6.2 FreeBSD GNOME Team Port Cc: x11@freebsd.org Subject: Re: gears vs. glxgears; i915 for Linux binaries? 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: Fri, 23 Jun 2006 17:29:10 -0000 --=-78OGp5RJoTnVaSvFL9kw Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Fri, 2006-06-23 at 13:17 -0400, Mikhail Teterin wrote: > First of all, allow me to thank you for the working DRI on my laptop with= i915=20 > chipset. Although none of my Radeon desktops work yet, this is very welco= me=20 > progress. >=20 > After installing the linux_dri port, I wanted to compare the simple (glx)= gears=20 > results between the Linux and the native binaries. >=20 > The /compat/linux/usr/X11R6/bin/gears appears to be the same beast, as th= e=20 > ${X11BASE]/bin/glxgears installed by the native Xorg port. >=20 > Running the Linux gears seemed VERY fast -- they were spinning like crazy= but=20 > the program reports just 1800 frames per 5 seconds -- around 380 FPS (all= for=20 > the default small window). >=20 > Running the native glxgears appeared much slower, but the reported stats = were=20 > ~2.5 times higher -- around 950 FPS. >=20 > Now, the reported speed difference is, likely, due to the fact, that the=20 > linux_dri does not (yet?) install the i915_dri.so, so no DRI is (yet?)=20 > possible for Linux programs on my laptop. But why does it *appear* to be=20 > faster? The gears move at a constant rate of change per frame. You're blitting frames to the screen faster than the screen outputs them. So, you get some subset of the frames gears drew, which don't necessarily give you the animation you expect. Sometimes the gears will even appear to go backwards (just like hubcaps on a car in movies will sometimes). I think glxgears is dumb for not syncing to vblank, and I run most of my apps with syncing to vblank on. You can use driconf to set this. You're getting software rendering with linux_dri. LIBGL_DEBUG=3Dverbose is the way to debug DRI issues, but I can shortcut here and yes, the absence of i915_dri.so is the problem. We need to get linux_dri updated to a set of recent Mesa binaries. I wonder what our current linux_base's package of dri modules looks like? --=20 Eric Anholt anholt@FreeBSD.org eric@anholt.net eric.anholt@intel.com --=-78OGp5RJoTnVaSvFL9kw Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQBEnCTHHUdvYGzw6vcRApP+AJ4mS50CwR5bsurZQNf8DS4PZ/c73ACfS6me RN9GT9VPE4gMiMsQ3e0jmgQ= =BiU+ -----END PGP SIGNATURE----- --=-78OGp5RJoTnVaSvFL9kw--