From: Eric Anholt Subject: Re: Mesa shader compiling/optimizing process is too slow Date: Mon, 09 Jul 2012 10:17:40 -0700 Message-ID: <87hatgkg5n.fsf@eliezer.anholt.net> References: <4FFB0B52.4030009@tizbac.dyndns.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2130094237==" Return-path: In-Reply-To: <4FFB0B52.4030009@tizbac.dyndns.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: Tiziano Bacocco , dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============2130094237== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= Content-Transfer-Encoding: quoted-printable Tiziano Bacocco writes: > I've done benchmarks and comparison between proprietary drivers and=20 > Mesa, Mesa seems to be up to 200x slower compiling the same shader,=20 > since i understand optimizing such part of code may take months or even=20 > more, i have thought to solve it this way: > > Upon calling glLinkProgram , an unoptimized version of the shader (=20 > compiles much much faster ) is uploaded to the GPU > Then a separate thread is launched that will optimize the shader and as=20 > soon it is done, on the next call to glUseProgram it will upload=20 > optimized version in place of unoptimized one. > > This will solve many performance issues and temporary freezes with games= =20 > that load/unload content while running, while not reducing performance=20 > once the background optimization is done Yeah, we've thought of this, and it would take some work. Sounds like a fun project for someone. --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAk/7EjQACgkQHUdvYGzw6vedEwCcCOCo9u0qTQIPEqQMZ03vlYdY hNkAnjKPY1hLSVz4gH5HPd5+ZVvCbFid =ALdw -----END PGP SIGNATURE----- --=-=-=-- --===============2130094237== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel --===============2130094237==--