IDXGISwapChain *g_swapChain = NULL;
Since we will be creating them together lets explain the swap chain. A swap chain is one or more back buffers used to make rendering more smooth. While the device renders one image on your screen the swap chain buffers another image in wait which can be swapped out with the last image. When you think that your game has to process AI, movement, player and enemy health, and more as well as graphics that update 60 times a second you can see why processing the screen image early and often can be useful. It is recommended to have at least 2 buffers.
It's really great post.Thanks for sharing it.
ReplyDelete