HP Visualize J5000 HP Workstations - Graphics Administration Guide For Red Hat - Page 19

Miscellaneous topics, Double buffer extension (DBE), Performing buffer swaps on vertical blank

Page 19 highlights

Double buffer extension (DBE) DBE is an extension to the X server that provides a doublebuffering Application Programming Interface (API). For more information about DBE and the API, consult the DBE man pages: DBE XdbeQueryExtension XdbeGetVisualInfo XdbeFreeVisualInfo XdbeAllocateBackBufferName XdbeDeallocateBackBufferName XdbeSwapBuffers XdbeBeginIdiom XdbeEndIdiom XdbeGetBackBufferAttributes Performing buffer swaps on vertical blank For performance reasons, the default DBE behavior is to not synchronize buffer swaps with the monitor's vertical retrace period. In some instances, therefore, image tearing (seeing part of the old image and part of the new image on the display at the same time) could be visible while swapping large DBE windows. For those instances where tearing would occur and is undesirable, an optional X server mode is available to allow for synchronization of buffer swaps with vertical retrace. To activate this optional X server mode, set the following screen option in the X*screens File before the X server is started: SwapBuffersOnVBlank For example: Screen /dev/mem [DefaultVisual] ScreenOptions Linux_BusID 1:1:0 MonitorRefreshRate 1280,1024,135000 SwapBuffersOnVBlank OverlayTransparentIndex0 Determining swap performance The DBE API does not allow users to determine if doublebuffering in a visual is through software or hardware. However, the API does provide a way to determine Graphics Administration Guide For Red Hat Linux 6.2

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73

Double buffer extension (DBE)
DBE is an extension to the X server that provides a doublebuffering Application
Programming Interface (API). For more information about DBE and the API,
consult the DBE man pages:
DBE
XdbeQueryExtension
XdbeGetVisualInfo
XdbeFreeVisualInfo
XdbeAllocateBackBufferName
XdbeDeallocateBackBufferName
XdbeSwapBuffers
XdbeBeginIdiom
XdbeEndIdiom
XdbeGetBackBufferAttributes
Performing buffer swaps on vertical blank
For performance reasons, the default DBE behavior is to
not
synchronize buffer
swaps with the monitor's vertical retrace period. In some instances, therefore,
image tearing (seeing part of the old image and part of the new image on the
display at the same time) could be visible while swapping large DBE windows.
For those instances where tearing would occur and is undesirable, an optional X
server mode is available to allow for synchronization of buffer swaps with vertical
retrace. To activate this optional X server mode, set the following screen option in
the
X*screens
File before the X server is started:
SwapBuffersOnVBlank
For example:
Screen /dev/mem
[
DefaultVisual
]
ScreenOptions
Linux_BusID 1:1:0
MonitorRefreshRate 1280,1024,135000
SwapBuffersOnVBlank
OverlayTransparentIndex0
Determining swap performance
The DBE API does not allow users to determine if doublebuffering in a visual is
through software or hardware. However, the API does provide a way to determine
Graphics Administration Guide For Red Hat Linux 6.2