Sign in to follow this  
cr0

Transparent top layer rendered in different thread

Recommended Posts

cr0    122
Pardon the simple question - I'm new to DirectX in general. I have an application which renders in D3D8, and I need to render a GUI on top of that in a seperate thread. What's the best way to go about this? DirectDraw somehow? Another D3D device?

Share this post


Link to post
Share on other sites
Agony    3452
Frankly, the best way to go about this is to not render it in a seperate thread. You can possibly run some of your GUI stuff in a seperate thread, such as receiving keyboard/mouse input, but the actual updating/rendering of the graphical elements should be in the same thread as all of your other rendering. Otherwise, you're just asking for excessively large headaches. Headaches that will exceed those that might be caused by a redesign into a single render thread.

Share this post


Link to post
Share on other sites
cr0    122
First, thank you for the quick response :). Ideally I would avoid this, but the gui will display things that will hault the main game thread [namely a VM debugger]. While I may get away with doing this another way, I probably won't, and might as well investigate how I'd go about this now :/.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this