Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Dave Gilbert <gilbertd@treblig.org>
To: axp-list@redhat.com
Subject: Re: Performance tips
Date: Sun, 2 May 1999 14:08:10 +0100 (GMT)	[thread overview]
Message-ID: <Pine.LNX.3.96.990502135839.379D-100000@tardis> (raw)
In-Reply-To: <Pine.GSO.4.05.9905011820490.21666-100000@ursa.calvin.edu>

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 __/


      parent reply	other threads:[~1999-05-02 14:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-05-01 22:36 Performance tips Jeff DeMaagd
1999-05-01 23:02 ` Paul Jakma
1999-05-02 13:08 ` Dave Gilbert [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox