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.