From: Eric Anholt Subject: Re: intel_prepare_render(intel); unhelpful? Date: Tue, 02 Nov 2010 08:40:53 -0700 Message-ID: <87iq0f7myi.fsf@pollan.anholt.net> References: <1288487734.3762.12.camel@pcjc2lap> <877hgxwvfp.fsf@pollan.anholt.net> <1288641178.21440.61.camel@pcjc2lap> <87wrowu7bp.fsf@pollan.anholt.net> <1288645484.2714.2.camel@pcjc2lap> <874oc0203e.fsf@pollan.anholt.net> <1288649974.2854.5.camel@pcjc2lap> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0598328520==" Return-path: In-Reply-To: <1288649974.2854.5.camel@pcjc2lap> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: Peter Clifton , "intel-gfx@lists.freedesktop.org" List-Id: intel-gfx@lists.freedesktop.org --===============0598328520== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= Content-Transfer-Encoding: quoted-printable On Mon, 01 Nov 2010 22:19:34 +0000, Peter Clifton wrote: > On Mon, 2010-11-01 at 14:41 -0700, Eric Anholt wrote: > > > I'm going to look at the case I "think" I hit an improvement for and > > > dissect _why_, then get back to you. >=20 > I'll check this again shortly.. (I recall I was testing this with the > display lists anyway).. >=20=20 > > > I'm chasing my code right now to see why it is emitting lots of batch= es > > > when not using display lists for benchmarking purposes. I got my figu= res > > > muddled up before.. I'm seeing 5 batches / frame when using Display > > > lists, and nearer 40 when not. (I previously reported the other way > > > around). > >=20 > > I'd love to know too. INTEL_DEBUG=3Dstate (in the midst of much other > > spam) dumps out a report of how many times various state changes got > > flagged, which may highlight a change between the two modes. >=20 > The large number of batches was due to a dumb dumb thing I was doing > with VBOs.. rather than just discarding the memory after rendering some > primitives, I was mapping the same VBO and re-uploading, causing > synchronisation. >=20 > Actually, I had two VBOs and was alternating between them, but was still > of course causing synchronisation at the map stage. Fixed now, so my non > display-list code is much faster again. >=20 > I guess it kind of begs the question why the compiled display list needs > 4 or 5 batches to do what my own code manages in 1. Display lists are an awful, deprecated feature of GL. The solution to them being inefficient is to not use them :) --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAkzQMQUACgkQHUdvYGzw6vd4BgCdE2UCTJvJp+UIOak0q2xwjxBu XwIAnjkKD4tIDY7PsSmaYxmdcIFF7vWG =fuiv -----END PGP SIGNATURE----- --=-=-=-- --===============0598328520== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx --===============0598328520==--