Jump to content

View more

Image of the Day

Inventory ! Va falloir trouver une autre couleur pour le cadre D: #AzTroScreenshot #screenshotsaturday https://t.co/PvxhGL7cOH
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Directx 11 and seperate rendering thread

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
2 replies to this topic

#1 Nanook   Members   

534
Like
0Likes
Like

Posted 04 September 2012 - 05:44 AM

When I start my application I set up all the resources in the main thread, but when the game loop starts the rendering is done in a seperate thread. I will not be using directx in the main thread after the initial steps.

With opengl I use wglMakeCurrent to just use the context I created in the main thread and it works fine. Can I do something similar with directx or would I need to have a deferred context even when I'm not using the context from different threads at the same time?

#2 L. Spiro   Members   

25464
Like
3Likes
Like

Posted 04 September 2012 - 05:49 AM

Your setup requires no extra work to be made multi-threaded, except to simply pass a flag to the function that creates the context to inform it to be multi-thread-safe.
DirectX is not a state machine like OpenGL. Contexts can be used across threads freely. You only need to handle your own personal synchronization issues, which would be present no matter what API you use.


L. Spiro

Edited by L. Spiro, 04 September 2012 - 07:02 AM.


#3 Nanook   Members   

534
Like
0Likes
Like

Posted 04 September 2012 - 06:36 AM

Okay great, thanks..




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.