The difference between double-buffered and single-cache

Source: Internet
Author: User

the difference between double-buffered and single-cache

The encoding encountered glutinitdisplaymode (unsigned int mode); function, the primary function is to set the initial display mode, where two of the available parameters are not understood. The glut_single,glut_double are respectively. Where Glut_single refers to the Order Cache window, glut_double specifies a double cache window.

It's important to understand the difference between a double-cache window and a single-cache window.

Single Cache window : In fact, all the drawing instructions are executed in the window, that is, drawing directly on the window, so that the efficiency of the drawing is relatively slow, if you use a single buffer, and the computer is slow, you go back to the screen flicker.

Double Cache window : The actual drawing instruction is completed in a buffer, where the drawing is very fast, after the drawing instructions are completed, and then the finished graphics are displayed immediately on the screen by exchanging instructions, which avoids the appearance of incomplete drawings and high efficiency.

How to use it.
In general, OpenGL drawings are double-buffered, and a single buffer is typically used only to display a single, non-dynamic image.

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.