MComputation locks UI

MComputation locks UI

haggi_master
Advocate Advocate
381 Views
1 Reply
Message 1 of 2

MComputation locks UI

haggi_master
Advocate
Advocate

In my projects I use the MComputation class to find out if the user has requested to interrupt the current rendering. Now I tried to make the UI responsive during renderings similiar as in the mtoa arnold rendering plugin. Unfortunatly it seems that as soon as I start MComputation.beginComputation(), the UI locks until I call endComputation(). In theory this should not happen.

 

If you want to have a look:

 

queueWorker

 

Any help would be great.

0 Likes
382 Views
1 Reply
Reply (1)
Message 2 of 2

vijaya.prakash
Alumni
Alumni

Case conversation is below:

--------------------------------

Hi Haggi,


What kind of UI response you are getting? Is it model dialogbox or modeless or fprint() statement or any callback? Since you are using similar code as mtoa arnold renderer plugin, is that plugin works well for you? If possible could you please share the sample code?



Best Regards,

Vijaya Prakash

=======================================================================================

 

Comments from Haggi,

-------------------------

Okay. Meanwhile I had a look at the code which mtoa uses and could see that they found a workaround for this problem. But I'd prefer to use the tools as they are not workarounds if possible. 


And yes, the mtoa-workaround seemt to work.

With the original code as soon as the MComputation starts, the UI is locked. What I want is a way to manipulate the scene during rendering, not to get feedback from somere else.

So if you maybe can confirm that this bug is still existent, I'll use the workaround.

=========================================================================================

Hi Haggi, 
  
I had a discussion with Engineering team and they confirmed that this bug still exists. So, you can use the workaround that you found it in MtoA Arnold Plugin. We will get back to you once this bug is fixed.


Thanks a lot for your support. 
  
Best Regards, 
Vijaya Prakash 

 

===========================================================================================

0 Likes