Clone of mesa.
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

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