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.