Hi everyone. I have a graphics project where the computations are fairly complex, so I set up a screen buffer. Basically, let's say that I have a 512 x 512 window. Then I will also have a 512 x 512 array of COLORREFs that correspond to what I want the window to look like.
Right now, I am just barreling through the array with two for loops and SetPixelV(), but I can still see the window scanning in whenever it needs updated.
What is the fastest way to fill a window with colors from a buffer?