Jump to content
  • Advertisement
Sign in to follow this  
Yashwinder

Can we use two directx9 devices to render on single screen

This topic is 2535 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
What you want is either to run the video asynchronously or multi-threading. Either one is none-trivial, the second more than the first.

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 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
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!