After 20 years I finally learned what 'double buffering' is
After 20 years, I finally learned what ‘double buffering’ means.
In 2006, I took Java programming in high school, and we made games. The book we were learning from had us learn from experience how displayed graphics jitter and tear if you write to a buffer as it’s being displayed. The solution, double-buffering, maintains two buffers: one you write to and one that is displayed and is read-only. Once you finish writing to the first buffer, you switch which one is being displayed and which one you write to, and you write the next frame.