From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 22157 invoked from network); 2 May 1999 14:22:08 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 2 May 1999 14:22:08 -0000 Received: from finch-post-12.mail.demon.net (finch-post-12.mail.demon.net [194.217.242.41]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id JAA01673 for ; Sun, 2 May 1999 09:50:59 -0400 Received: from [194.222.210.232] (helo=tardis) by finch-post-12.mail.demon.net with smtp (Exim 2.12 #1) id 10dw1e-000DdW-0C for axp-list@redhat.com; Sun, 2 May 1999 13:11:19 +0000 Date: Sun, 2 May 1999 14:08:10 +0100 (GMT) From: Dave Gilbert X-Sender: gilbertd@tardis To: axp-list@redhat.com Subject: Re: Performance tips In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Sat, 1 May 1999, Jeff DeMaagd wrote: > I was disappointed that Linux couldn't keep up in graphics speed. Is > there anything I can do to tune MESA for better performace? I am hoping > for a 'quick fix' as in changing configurations or patching, not rewriting > using assembly language. Well I'd bet the NT drivers have pieces of heavily tuned assembler in - but lets ignore for that for the moment. When building MESA you want to push the compiler as far as it will go: 1) Get EGCS source, build it yourself on your target system - that way it will optimise it self by default for the processor in your machine. EGCS has optimisations for the 21164a - make sure it uses them. 2) Turn the compiler optimisation options up to full wack: This is the entr yin my Mesa/Make-config: linux-alpha-elf: $(MAKE) $(MFLAGS) targets \ "GL_LIB = libMesaGL.so" \ "GLU_LIB = libMesaGLU.so" \ "GLUT_LIB = libglut.so" \ "CC = gcc" \ "CFLAGS = -O6 -mcpu=21164a -ansi -pedantic -fPIC -D_XOPEN_SOURCE -DSHM" \ "MAKELIB = ../mklib.linux" \ "XLIBS = -L/usr/X11R6/lib -lX11 -lXext -lXmu -lXi" Note the SHM for X shared memory, the -mcpu=21164a (reinforcing the first note - but shouldn't be necessary if you did 1), and the -O6. 3) trispd is the benchmark I normally run, running here in 8bpp mode on my 533MHz 21164a, with Matrox Millenium 2 (4MB) gives: bash-2.03$ ./trispd For options: ./trispd -help Dither: on ShadeModel: smooth DepthTest: off Size: 50 pixels RedBits: 2 GreenBits: 3 BlueBits: 3 Rate: 778752 tri in 3.984s = 195470 tri/s 9773493 pixels/s Rate: 778752 tri in 3.981s = 195617 tri/s 9780859 pixels/s Rate: 778752 tri in 3.983s = 195519 tri/s 9775947 pixels/s Personally I look forward to the time when XFree has 3D acceleeration in it - then I'll buy a card with some real 3D accel in it! What did you get out of NT ? Dave -------------------------------------------------------------------- / Dr. David Alan Gilbert | Running Linux on | Happy \ \ gro.gilbert @ treblig.org | Alpha, ARM and SPARC | In Hex / \____________________________|___ http://www.treblig.demon.co.uk __/