Skip to main content
GameDev.net gamedev.net
🔒 Locked

Can we use two directx9 devices to render on single screen

Started by Yashwinder Dec 30, 2011 at 1:35 PM 3 replies 1.8k views
Original Post
Yashwinder
Yashwinder
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.
Narf the Mouse
Narf the Mouse
What you want is either to run the video asynchronously or multi-threading. Either one is none-trivial, the second more than the first.
Yashwinder
Yashwinder
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.
carmangary
carmangary
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.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.