| United States-English |
|
|
|
![]() |
HP PEX Implementation and Programming Supplement: HP9000 Series 700 Color Workstations > Chapter 3 Running HP PEXlib Programs Operating Methods |
|
This section describes differences in how the client application can control the way rendering is performed through the HP PEXlib interface. There are three basic methods that PEXlib can assume: DHA, PEX, or X. You make the selection via the type of X display connection (normally specified with the environment variable DISPLAY) and the environment variable HPPEX_CLIENT_PROTOCOL. Instructions for setting and controlling these methods using the DISPLAY and HPPEX_CLIENT_PROTOCOL as one of the environment variables are covered in this chapter. (The other environment variables that affect PEXlib behavior are also covered in a later section of this chapter). In the accompanying table, you see the possible values of the environment variable HPPEX_CLIENT_PROTOCOL against the possible values of the X DISPLAY variable. Each cell in the table shows the order in which PEXlib tries to initialize the client connection based on the two environment variables. The progression is shown by "→". If the HPPEX_CLIENT_PROTOCOL environment variable is not set, or is set to an unrecognized value, this indicates the client wants PEXlib to select the best possible connection method to the server based on rendering performance and the relation between client and server systems. If a specific connection type is asked for, but the connection cannot be made, PEXlib does not try any other options and initialization fails. A maximum of 16 display connections per HP-UX process can be initialized for PEXlib at the same time (see PEXInitialize). Definitions for the terms that appear in the following table are explained here: Table 3-1 Definitions Used In Table 3-2
Table 3-2 Progression of Protocol Selection
The DHA protocol method, a Hewlett-Packard feature, provides the highest graphics performance for local connections, its chief advantage. However, DHA is available only when the client and server are on the same workstation; that is, the client is running on the local server. A client may want to use DHA method (and will get DHA method by default on a local machine) for performance reasons. However, since DHA method does not generate any PEX protocol requests, some minor behavioral differences may be observed. The differences are listed here along with a brief explanation:
It is often helpful to debug your applications using the DHA Protocol Method, before attempting to run them using the X Protocol Method. This is because errors are asynchronous in the X Protocol Method and because DHA rendering does additional error checking. PEX protocol method provides the best performance in distributed graphics environments when a PEX-capable server is available, i.e., when the client and server are on different systems and the remote X server has initialized the PEX extension. In this method, PEX protocol is transmitted over the network to the remote server. Performance is dependent upon factors such as network loading, bandwidth, and the type of network. There is little that can be assumed about protocol performance when sending PEX protocol to other vendors' PEX servers. Performance issues relating to the network type and total bandwidth apply, but the point-to-point capacities of the various vendors' network interface cards vary. In addition, each particular implementation of the PEX standard will possess its own performance characteristics. This method is provided so that an HP PEXlib client application can run to an X server or X terminal that does not support the PEX extension. This method is characterized by local rendering into virtual memory, followed by XPutImage requests to the server. Since this method also uses the network for protocol transmission, it is subject to the same performance considerations as the PEX Protocol method. This method can be "forced," even if the server does support the PEX extension. All the comments pertaining to the DHA method are also applicable to X Protocol method, plus the following additional differences:
[8] The actual pathname of this directory depends on the file system structure. See the Graphics Administration Guide for details. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||