| United States-English |
|
|
|
![]() |
HP-UX Starbase Device Drivers Manual - Vol1: HP 9000 Series 700 Computers > Chapter 4 The CRX Family of Device DriversIf You See the Technicolor Effect |
|
You can reduce the visual effects of color map thrashing, also called the technicolor effect, and thus reduce distractions due to color map changes. Set the environment variable SB_X_SHARED_CMAP to true to use a shared color map between Starbase and X. The Starbase device driver and the X server for the GRX, CRX, dual CRX and HP 705/710/715/725 devices support the environment variable which indicates the use of a shared or cooperative color map definition. The environment variable allows sharing of the color map resource by Starbase applications with other X clients. It eliminates the creation and installation of different color maps for each different Starbase application being run. If you are using x11start, make sure you have the environment variable SB_X_SHARED_CMAP set before you execute x11start:
The best way to do this is to include it in your $HOME/.profile. If you are using HP VUE (Visual User Environment) add the following line to the end of your 〈vue-config〉[14]/Xconfig file:
The Xconfig file may contain commented out entries for some of the more popular resources, including "environment". Simply find the line containing "environment", add the appropriate value and uncomment the line. When using HP VUE with SB_X_SHARED_CMAP set, there is one other resource of interest. The HP VUE *colorUse resource in
can be set to use less colors if it is desired that HP VUE not use up all the unallocated color map cells. For example, the following line can be placed in the sys.resources file if you want to use just 4 color sets:
The default value on GRX and CRX is HIGH_COLOR. Additional values are MEDIUM_COLOR and LOW_COLOR. The full range of accepted values for this resource can be found in HP VUE documentation. Please note that changing the 〈vue-config〉[15]/sys.resources file will only affect users who initiate an HP VUE session after the change. To change this setting for an existing user, you can simple change the *colorUse setting via a dialog in the HP VUE Style Manager:
This section is an update to the section "Color Map Sharing Starbase and X Windows" in the chapter "The CRX Family of Device Drivers" in the HP-UX Starbase Device Drivers Manual. SB_X_SHARED_CMAP (environment variable) allows for the sharing of the default color map between X11 and Starbase graphics if you are using GRX, CRX, and Dual CRX graphics devices and Integrated Graphics and Internal Color Graphics Workstations. Enabling this environment variable helps reduce the technicolor effect that occurs between simultaneously active applications. When the SB_X_SHARED_CMAP is set to any value (for example, READ_ONLY_PRIMARIES), the X server initializes the default color map entries as follows:
To avoid the technicolor effect on these devices, you need to use CMAP_FULL without modifying the color map (for example, define_color_table). On the GRX, applications can determine that the device is grayscale (use inquire_capabilities) and make use of only CMAP_MONOTONIC. When SB_X_SHARED_CMAP is set to any value at gopen time, your graphics application will function as described in the subsequent sections. During gopen If the gopen was done with INIT, then entries 0 through 39 of the Starbase color table are initialized to entries 0 through 39 of the default root color map. Entries 40 through 255 are initialized to a 6|6|6 RGB ramp to be used for color map mode CMAP_FULL type rendering. If the gopen was done without INIT, then the entries of the color map associated with the window are queried, and these values are used to initialize the Starbase color table. In addition, entries 0 through 39 of this query are saved for future use. The default shade_mode in effect is CMAP_FULL. On a grayscale device, the default color map mode is CMAP_MONOTONIC (when gopen mode is INIT) since this is the only mode that can be shared. During shade_mode If your application makes a shade_mode call with INIT and changes the shade mode to CMAP_NORMAL or CMAP_MONOTONIC, then the Starbase color map table gets initialized to the default values for a CMAP_NORMAL or CMAP_MONOTONIC color map. No attempt is made to preserve entries 0 through 39 of the Starbase color map to those values queried at gopen time. If your application makes a shade_mode call with INIT to CMAP_FULL mode, then the Starbase color table is initialized back to the shared initialization:
Enabling Gamma Correction Gamma correction is not supported in depth 8 visuals. SB_X_SHARED_CMAP is only supported in depth 8 visuals. However, if your application calls the GAMMA_CORRECTION gescape in a depth 8 visual, and the environment variable ENABLE_CRX_GAMMA is not set, the GAMMA_CORRECTION gescape still results in the color map being initialized to the current color map mode. This implies that a sequence similar to the following can cause a color map to be initialized as if SB_X_SHARED_CMAP were not set:
Enabling Double-Buffering Only 8/8 double-buffering is supported when SB_X_SHARED_CMAP is set and the shade mode is currently CMAP_FULL. Other double-buffer calls (for example, 1/1, 2/2, 3/3, and 4/4, which are referred to as intra-visual double-buffering) will be ignored. If the current shade mode is not CMAP_FULL, then intra-visual double-buffering is supported as usual. If the behavior with SB_X_SHARED_CMAP is unacceptable for a specific application, do not set the environment variable, or if it is already set, unset the environment variable prior to invoking the application or calling gopen (see putenv(3C) in the HP-UX Reference). This will allow the normal color map functionality, but the technicolor effect may be seen. The following table describes the HP 705, 710, 715, 725 default color map for color devices when SB_X_SHARED_CMAP is set and color map mode is CMAP_FULL. Table 4-4 HP 705, 710, 715, 725 Default Shared Color Map
The following table describes the GRX default color map when SB_X_SHARED_CMAP is set and the grayscale color map mode is CMAP_MONOTONIC. Table 4-5 GRX Default Shared Color Map
The following table describes the CRX default color map for color devices when SB_X_SHARED_CMAP is set and color map mode is CMAP_FULL. Table 4-6 CRX Default Shared Color Map
Here are two notes on the X server's use of the SB_X_SHARED_CMAP environment variable:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||