copy node graph before rendering

Previous iterations would use mutexes to prevent changing of the graph
mid-render, however several user actions would need to capture these mutexes
causing the main thread to hang until the current render job (frame/range of
samples) was complete. We now copy the nodes necessary as part of the "compile"
process so that the main thread shouldn't need nearly as much blocking while
caching occurs.
This commit is contained in:
itsmattkc
2019-11-23 08:53:52 +09:00
parent b233aa5319
commit 2cfccbfbef
7 changed files with 87 additions and 23 deletions
+2 -2
View File
@@ -130,8 +130,8 @@ void NodeParam::DisconnectEdge(NodeEdgePtr edge)
output->parent()->LockUserInput();
input->parent()->LockUserInput();
output->edges_.removeAll(edge);
input->edges_.removeAll(edge);
output->edges_.removeOne(edge);
input->edges_.removeOne(edge);
output->parent()->UnlockUserInput();
input->parent()->UnlockUserInput();