Why not use GDI to repeatedly fill a window with RGB data from an array?
This is a follow-up to this question . I'm currently writing a simple game and am looking for the fastest way to (repeatedly) display an array of RGB data in a Win32 window, without flickering or other artifacts. Several different approaches were recommended in the answers to the previous question, but there was no consensus on which would be the fastest. So, I threw together a test program. The code simply displays a framebuffer on the screen repeatedly, as fast as possible. These are the results I obtained, for 32-bit data running in a 32-bit video mode - they may surprise some people: -