beautypg.com

Pass through mode – HP sv6 User Manual

Page 82

background image

installation and user information

optimization

Chapter 2

82

glEnable(GL_SUPERSAMPLE_HP);

glDisable(GL_SUPERSAMPLE_HP);

CAUTION

Depending upon application frame rates and window size, enabling
scene anti-aliasing can impact performance significantly. With low
frame rates and/or small windows, the performance impact is minor
(5% or less). Also, when scene anti-aliasing is turned on, there is
much less fx10 memory available for caching texture maps, so this
can also impact rendering performance.

pass through mode

Applications that run in OpenGL immediate mode rather than running
in display list mode do not scale well in performance. Immediate mode
applications tend to run slower when executed on the sv6 architecture
due to excessive network traffic.

To provide the best performance for immediate mode applications
running on sv6 systems, a special mode called “pass through mode” has
been implemented. When an application runs in pass through mode on
an sv6 system, it bypasses the sv6 architecture and runs as if it were
executing graphics on a standard workstation. This is the optimal mode
for executing immediate mode OpenGL code on an sv6 configuration.

To enable pass through mode, simply set this variable right before you
run the application then unset it before you start any other applications
from the same shell:

Example (for Korn Shell):

export HPOGL_PASS_THROUGH=1
/applications/abc/run_abc
unset HPOGL_PASS_THROUGH

or (for C Shell)

setenv HPOGL_PASS_THROUGH 1
/applications/abc/run_abc
unsetenv HPOGL_PASS_THROUGH