Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Multiple drawing ports

This topic is 6011 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

Okay, I want to do a sort of 2 player / split screen thing with DX8. Do you just make two different D3D Devices? Any help is appreciated. ----------------------------- Vash the Stampede "Love & Peace!"

Share this post

Link to post
Share on other sites
Guest Anonymous Poster

two devices is a bad idea.

instead think about using two different windows and creating a swap chain for each.

or mucking around with the viewport settings.
ie set the vp for player 1 and render.
then set the vp for player 2 and render


Share this post

Link to post
Share on other sites
Definately go for viewports IMO.

Clear all of the render target with a single call (some drivers are buggy when dealing with sub region clears). Then set each viewport and render the data in turn.

We do this in our engine and it works a treat. The only time you should need new swap chains is for windowed mode where different windows contain different views.

And the only reason you should ever create more than 1 device is for multiple monitor systems.

Simon O''''Connor
Creative Asylum Ltd

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!