Jump to content

View more

Image of the Day

The night is still, but the invasion brings chaos. #screenshotsaturday #hanako #indiegame #gameart #ue4 #samurai https://t.co/cgILXuokoS
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

How to flip multiple swapchains with VSYNC on?

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
1 reply to this topic

#1 BlueWanderer   Members   

122
Like
0Likes
Like

Posted 17 April 2012 - 10:58 PM

Can I call the Present method of different swapchains of a single adapter each in a separate thread?

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?

#2 Zoner   Members   

232
Like
0Likes
Like

Posted 04 May 2012 - 06:21 PM

This is more from knowledge and some intuition vs experience here:

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).




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.