HP c8000 manual Texture downloading performance, Selection performance

Page 58

programming hints

OpenGL performance hints

glNormal3fv(&v2); glVertex3fv(&p5); glNormal3fv(&v2); glVertex3fv(&p6);

...

glEnd();

The reason this is faster is the display list can optimize this type of primitive into a single, very efficient structure. The small cost of adding extra data is offset by this optimization.

Performance is increased by maximizing the number of vertices per Begin/End pair. If your vertex data in memory is organized in a linear, rather than a random manner, performance is enhanced by taking advantage of vertex pre-fetch. It is most efficient to use 32-bit float data, which avoids the need to convert data.

texture downloading performance

This section includes some helpful hints for improving the performance of your program when downloading textures.

If you are downloading MIP maps, always begin with the base level (level 0) first.

If it is possible, you should use texture objects to store and bind textures.

If you are doing dynamic downloading of texture maps, you will get better performance by replacing the current texture with a texture of the same width, height, border size, and format. This should be done instead of deleting the old texture and creating a new one.

selection performance

To increase the performance of selection (glRenderMode GL_SELECTION) it is recommended that the following capabilities be disabled before entering the selection mode.

GL_TEXTURE_*

GL_TEXTURE_GEN_*

GL_FOG

GL_LIGHTING

56

Chapter 5

Image 58
Contents OpenGL Implementation Guide Legal Notices Contents Installation and setup Programming hints Contents Overview of OpenGL Introduction OpenGL Reference ManualHp’s implementation of OpenGL OpenGL productHp’s implementation of the OpenGL libraries Supported graphics devices Supported operating systemsSupported visuals Visual Table for HP Visualize fxeVisual Table for ATI Fire GL T2/X1/X3 Stereo Visual Support for HP Fire GL-UX Visual support for other graphics devicesBuffer sharing between multiple processes and threads Sigchld and the GRM daemonBit programming Sample 64-bit compile and link for 11.x only SLS supportInput and output routines Standard OpenGL productOpenGL Utilities Library GLU OpenGL extensions for the X Window system GLXOpenGL product Mixing of OpenGL and Xlib Gamma correction Occlusion extension OpenGL extensionsVisibility test extensions Occlusion culling code fragmentsEnumerated Types for Occlusion GLHPsupersample extension EXP and EXP2 fogging Default visualsRendering details Bow-tie quadrilateralsDecomposition of concave quadrilaterals Index mode ditheringVertices outside of a begin/end pair Environment variables New environment variables as of release Switches to the faster double buffering method Installation and setup Installation and setup Is your system software preloaded with instant ignition? Verification instructionsVerify that OpenGL is on your workstation Installing OpenGL Install OpenGLOpenGL Development Environment Filesets for 11.0 Check log file Verify the product OpenGL file structure 64-bit libraries are in a subdirectory OpenGL file structure Chapter Running OpenGL programs Visual support for the VGL mode Virtual GLX VGL modeSpecial considerations Bool hpglXDisplayIsVGLDisplay *dpy, int screen Running hps implementation of the OpenGL stereo application Running hps implementation of the OpenGL stereo application Running OpenGL programs Compiling and linking programs Overview Subdirectory This Directory ContainsIncluding header files Linking shared libraries Compiling 32-bit and 64-bit applications for OpenGL OpenGL procedure calls Programming hints Programming hints 4D values OpenGL correctness hintsTexture coordinates Display list performance Glcompileandexecute modeOpenGL performance hints Geometric primitivesDraw array set extensions Textures State changes and their effects on display listsRegular primitive data Texture downloading performance Selection performanceState change Occlusion culling Optimization of lightingHigh frame rate applications Rescaling normals OpenGL performance hints
Related manuals
Manual 27 pages 63.95 Kb Manual 8 pages 32.71 Kb Manual 89 pages 28.35 Kb