• Advertisement
Sign in to follow this  

Can we use two directx9 devices to render on single screen

This topic is 2209 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi! I am rendering video along with some image slide show and a scrolling ticker. I am running my main application loop inside the present image function of IVMRImagePresenter9 interface of directshow. I am also using GMFBridge for seamless playbackBy doing this my application become dependent on the frames of the video. I have tried out many ways to properly sync my application with the video but video is flickering if I place my main rendering loop outside the presentImage function but if I put the main rendering loop inside the presentImage function then every thing works fine but my application frames per second becomes dependent on the frames of the video. Is it possible that i use two devices so that one device renders only video to the screen and the second device manages the other stuff of ticker and image slideshow.

Share this post


Link to post
Share on other sites
Advertisement
Hidden
[quote name='Narf the Mouse' timestamp='1325263358' post='4898188'] What you want is either to run the video asynchronously or multi-threading. Either one is none-trivial, the second more than the first. [/quote]

Share this post


Link to post
The video is already using multi-threading to run but it flickers beause of the same. I want to ask that can not I use two devices at the same time in the single application so that one device handles the video and the other device takes care of the slide show and the ticker.

Share this post


Link to post
Share on other sites
I think you want to look into device interoperabilty, where you use mutexes so you can use one device at a time. maybe i'm wrong, but you could check this out, it might be of interest

[url="http://msdn.microsoft.com/en-us/library/windows/desktop/dd370966(v=vs.85).aspx"]http://msdn.microsoft.com/en-us/library/windows/desktop/dd370966(v=vs.85).aspx[/url]

Share this post


Link to post
Share on other sites
I am currently using more than one Device per screen. I keep hearing I should use SwapChains and one Device but I haven't seen any issues using multiple Devices. So, it definitely works. Whether it is the best way to go is a question for debate.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement