Clone of mesa.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

perf.html 2.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <HTML>
  2. <TITLE>Performance Tips</TITLE>
  3. <link rel="stylesheet" type="text/css" href="mesa.css"></head>
  4. <BODY>
  5. <H1>Performance Tips</H1>
  6. <p>
  7. Performance tips for software rendering:
  8. </P>
  9. <ol>
  10. <li> Turn off smooth shading when you don't need it (glShadeModel)
  11. <li> Turn off depth buffering when you don't need it.
  12. <li> Turn off dithering when not needed.
  13. <li> Use double buffering as it's often faster than single buffering
  14. <li> Compile in the X Shared Memory extension option if it's supported
  15. on your system by adding -DSHM to CFLAGS and -lXext to XLIBS for
  16. your system in the Make-config file.
  17. <li> Recompile Mesa with more optimization if possible.
  18. <li> Try to maximize the amount of drawing done between glBegin/glEnd pairs.
  19. <li> Use the MESA_BACK_BUFFER variable to find best performance in double
  20. buffered mode. (X users only)
  21. <li> Optimized polygon rasterizers are employed when:
  22. rendering into back buffer which is an XImage
  23. RGB mode, not grayscale, not monochrome
  24. depth buffering is GL_LESS, or disabled
  25. flat or smooth shading
  26. dithered or non-dithered
  27. no other rasterization operations enabled (blending, stencil, etc)
  28. <li> Optimized line drawing is employed when:
  29. rendering into back buffer which is an XImage
  30. RGB mode, not grayscale, not monochrome
  31. depth buffering is GL_LESS or disabled
  32. flat shading
  33. dithered or non-dithered
  34. no other rasterization operations enabled (blending, stencil, etc)
  35. <li> Textured polygons are fastest when:
  36. using a 3-component (RGB), 2-D texture
  37. minification and magnification filters are GL_NEAREST
  38. texture coordinate wrap modes for S and T are GL_REPEAT
  39. GL_DECAL environment mode
  40. glHint( GL_PERSPECTIVE_CORRECTION_HINT, GL_FASTEST )
  41. depth buffering is GL_LESS or disabled
  42. <li> Lighting is fastest when:
  43. Two-sided lighting is disabled
  44. GL_LIGHT_MODEL_LOCAL_VIEWER is false
  45. GL_COLOR_MATERIAL is disabled
  46. No spot lights are used (all GL_SPOT_CUTOFFs are 180.0)
  47. No local lights are used (all position W's are 0.0)
  48. All material and light coefficients are >= zero
  49. <li> XFree86 users: if you want to use 24-bit color try starting your
  50. X server in 32-bit per pixel mode for better performance. That is,
  51. start your X server with
  52. startx -- -bpp 32
  53. instead of
  54. startx -- -bpp 24
  55. <li> Try disabling dithering with the MESA_NO_DITHER environment variable.
  56. If this env var is defined Mesa will disable dithering and the
  57. command glEnable(GL_DITHER) will be ignored.
  58. </ol>
  59. </BODY>
  60. </HTML>