How to flip multiple swapchains with VSYNC on?,
Members - Reputation: 122
Posted 17 April 2012 - 10:58 PM
I have 2 monitors attached to one card and 2 swapchains for each monitor. Without triple buffering, call Present sequentially would be silly. And with triple buffering, I will have to add one more staging buffer for each stream content (and I have a lot of them).
I found that I didn't know when Present would wait... Will Present be blocked when there is no free buffer in swapchain, or will it be blocked when number of queued frames have reached the maximum?
Members - Reputation: 232
Posted 04 May 2012 - 06:21 PM
Make a thread for each display device, give them each their own HWND and message pump, call Present from those threads. The actual rendering can be on any thread but presenting on the pump thread requires a bit of syncornization finesse (but is very much worth it and more or less required in multithreaded rendering anyway).