Changeset 3795 in vbox for trunk/src/VBox
- Timestamp:
- Jul 23, 2007 4:41:37 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/idl/VirtualBox.xidl
r3793 r3795 6282 6282 and provides it to the virtual machine. In <i>direct</i> mode, the 6283 6283 IFramebuffer implementation uses the memory buffer allocated and owned 6284 by the virtual machine. The direct mode is usually faster because the 6285 implementation gets a pointer to the virtual machine video card's memory 6286 which it can directly use for visualising the contents of the virtual 6287 display, as opposed to the indirect mode where the video card's memory 6288 contents are copied to the memory buffer provided by the implementation 6289 every time a display update occurs. 6284 by the virtual machine. This buffer represents the video memory of the 6285 emulated video adapter (so called <i>guest VRAM</i>). The direct mode is 6286 usually faster because the implementation gets a raw pointer to the 6287 guest VRAM buffer which it can directly use for visualising the contents 6288 of the virtual display, as opposed to the indirect mode where the 6289 contents of guest VRAM are copied to the memory buffer provided by 6290 the implementation every time a display update occurs. 6290 6291 6291 6292 It is important to note that the direct mode is really fast only when 6292 the implementation uses the provided video buffer directly, for example,6293 by blitting it to the window representing the virtual machine's display,6294 which saves at least one copy operation comparing to the indirect mode.6295 However, using the video card's memory directly is not always possible:6296 for example, the format and the color depth of the window representing6297 the virtual display may differ from the format or the color depth of the6298 virtual video buffer, or the format of the latter may be unknown or6299 unsupported. In this case, the indirect mode (that is always available)6300 should be used as a fallback: when the virtual video card's memory6301 contents are copied to the implementation-provided memory buffer, color6302 and format conversion isdone authomatically by the underlying code.6293 the implementation uses the given guest VRAM buffer directly, for 6294 example, by blitting it to the window representing the virtual machine's 6295 display, which saves at least one copy operation comparing to the 6296 indirect mode. However, using the guest VRAM buffer directly is not 6297 always possible: the format and the color depth of this buffer may be 6298 not supported by the target surface, or it may be unknown (opaque) as in 6299 case of text or non-linear multi-plane VGA video modes. In this case, 6300 the indirect mode (that is always available) should be used as a 6301 fallback: when the guest VRAM contents are copied to the 6302 implementation-provided memory buffer, color and format conversion is 6303 done authomatically by the underlying code. 6303 6304 6304 6305 The @a pixelFormat parameter defines whether the direct mode is
Note:
See TracChangeset
for help on using the changeset viewer.