I believe this is called double buffering. You have a back buffer and a front buffer and switch them every frame.
The thread below should have the answers you’re looking for
I believe this is called double buffering. You have a back buffer and a front buffer and switch them every frame.
The thread below should have the answers you’re looking for