Digital Art Zone

 
     
Multithreading in Daz SDK?
Posted: 02 July 2013 11:43 PM   [ Ignore ]
Member
Rank
Total Posts:  50
Joined  2010-09-22

I’m trying to employ some basic concurrency in a Daz plugin I’m working on and am encountering significant problems at every step. 

Is there any reason I should be aware of that would prevent me from using things like QThreadPool or QtConcurrent in the Daz SDK?  Outside of rendering Daz only ever seems to make use of a single core on my system, but Qt has good support for multi threading and I’m hoping to take advantage of this.

Thanks

Profile
 
 
Posted: 14 July 2013 09:28 PM   [ Ignore ]   [ # 1 ]
Member
Rank
Total Posts:  50
Joined  2010-09-22

Disregard this—I found my issue and it had nothing to do with Daz.  I was misunderstanding how the threading support in Qt works.

Profile
 
 
Posted: 02 November 2013 07:32 AM   [ Ignore ]   [ # 2 ]
New Member
Avatar
Total Posts:  11
Joined  2010-12-25
shoei321 - 14 July 2013 09:28 PM

Disregard this—I found my issue and it had nothing to do with Daz.  I was misunderstanding how the threading support in Qt works.

a little late to the party: afaik nothing in the daz api is really thread-safe; means accessing dz* (scene, nodes, mats, etc.) from different threads may easily cause problems. i.e. in my case trying to access geometry data from multiple threads caused inconsistent data.

problems and crashes that may occur because of this are often not very obvious; from my experience it is advised to do any call to any dz* object from the main thread only,. e.g. just do completely encapsulated calculations or atomic operations from within other threads…

Profile