D3d display mode principle

Source: Internet
Author: User

In the d3d program, there are two display modes: full screen and window mode ). in full screen mode, a 3D screen is filled with the entire computer screen, while a window is used to present a 3D screen. they work as follows:

 

Window Mode

 

In this mode, three buffers are used to display the desktop buffer and two color buffers (front buffer & back buffer ). when a color buffer is ready, it becomes the front buffer, and the system copies the information in the front buffer to a location as large as the Front color on the desktop buffer. at the same time. another color buffer will be a back buffer, so that the program can continue to process the next screen. After processing, it will switch to the first color buffer as the front buffer, the system then copies it to the corresponding location of the desktop buffer. this is how the window mode works.

 

Full Screen mode

 

In this mode, the desktop buffer is not required. Instead, the screen uses a pointer to direct to the front buffer. Therefore, the replication process is not required, improving the efficiency.

 

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.