问题
What does it mean by Page-Flipping?
Why do we need it in graphics programming?
回答1:
Page flipping refers to a technique for flicker-free graphics which has been with us for decades. Two different areas (pages) of computer RAM were mappable to the screen hardware, and one of them could be chosen to be visible at any given time with a very simple and instantaneous instruction to the hardware. So, frames would be rendered in the page which was at any time invisible, and then the hardware instruction would be issued to switch the visible page, making the newly rendered frame visible, and making the previously visible page invisible and available for rendering the next frame.
回答2:
often its too slow to draw directly on the screen, visually, you see the drawing. So you draw on one page while showing another. then when its ready to be shown you 'page flip' to the fully drawn page, then you can start drawing on another page.
Makes for smooth animation.
来源:https://stackoverflow.com/questions/8639408/what-does-it-mean-by-page-flipping-in-computer-graphics-programming