Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Performance tips
@ 1999-05-01 22:36 Jeff DeMaagd
  1999-05-01 23:02 ` Paul Jakma
  1999-05-02 13:08 ` Dave Gilbert
  0 siblings, 2 replies; 3+ messages in thread
From: Jeff DeMaagd @ 1999-05-01 22:36 UTC (permalink / raw)
  To: axp-list


Well, after long last, I decided to try out my copy of Visual C++ 6.0 on
the OpenGL programs that Microsoft distributes.  I found that when using
software acceleration, they seem to run about twice as fast as the same
programs running under Linux, software acceleration.  The sample programs
are typically freely available, and many are also included with MESA.

Under Linux, I am using egcs-1.1.1 as a compiler, and MetroX as the X
server, the performance on OpenGL programs is indistinguishable from
XFree, except I can use two monitors. I think the lib is glibc 2.0, kernel
is 2.2.7, on an otherwise stock Red Hat 5.1 system.

On both OSs, I am using two Matrox Millennium display cards, on a dual
booting NT - Linux system, with a 21164A chip.

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.

Thanks.

Jeff DeMaagd


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Performance tips
  1999-05-01 22:36 Performance tips Jeff DeMaagd
@ 1999-05-01 23:02 ` Paul Jakma
  1999-05-02 13:08 ` Dave Gilbert
  1 sibling, 0 replies; 3+ messages in thread
From: Paul Jakma @ 1999-05-01 23:02 UTC (permalink / raw)
  To: axp-list

On Sat, 1 May 1999, Jeff DeMaagd wrote:

  
  Well, after long last, I decided to try out my copy of Visual C++ 6.0 on
  the OpenGL programs that Microsoft distributes.  I found that when using
  software acceleration, they seem to run about twice as fast as the same
  programs running under Linux, software acceleration.  The sample programs
  are typically freely available, and many are also included with MESA.

IIRC, DEC did a lot of research on optimisation under NT, eg have a
look at the "SPIKE" whitepaper, very interesting - it's somewhere on
the digital alpha website. You can be pretty sure these optimisitions
made their way into VC++.

  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.
  
Are you using Mesa as the renderer on NT aswell? 

One idea is maybe to use compaq's optimised maths library instead of
the glibc libm.

  Thanks.
  
  Jeff DeMaagd
  
  
regards,
-- 
Paul Jakma
paul@clubi.ie	http://hibernia.clubi.ie
PGP5 key: http://www.clubi.ie/jakma/publickey.txt
-------------------------------------------
Fortune:
Remember -- only 10% of anything can be in the top 10%.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Performance tips
  1999-05-01 22:36 Performance tips Jeff DeMaagd
  1999-05-01 23:02 ` Paul Jakma
@ 1999-05-02 13:08 ` Dave Gilbert
  1 sibling, 0 replies; 3+ messages in thread
From: Dave Gilbert @ 1999-05-02 13:08 UTC (permalink / raw)
  To: axp-list

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1999-05-02 14:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-05-01 22:36 Performance tips Jeff DeMaagd
1999-05-01 23:02 ` Paul Jakma
1999-05-02 13:08 ` Dave Gilbert

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