Protect Operation takes a long time

DarthBane55
Advisor
Advisor

Protect Operation takes a long time

DarthBane55
Advisor
Advisor

Hi, I'd like to know what is the software looking at when we protect an operation.  For most jobs it works instantly, but we also have some parts with upwards of 150 operations, and when you get to that number, and the more operations you add, the longer it takes to simply protect operations.  It takes 3-5 seconds for protecting 1 operation for those bigger programs, and if I want to protect everything in 1 go, it takes at least a minute.  I know it doesn't sound like much, but when you do this all the time it adds up, and it feels wrong... like it's looking at something internally before protecting.  Shouldn't it simply protect it instantly, I don't see what it wants to look at for this.  

Sorry, I cannot share those files (before you ask).

0 Likes
Reply
644 Views
14 Replies
Replies (14)

seth.madore
Community Manager
Community Manager

Can you share the file? 😛

 

I'm not sure, but I know who to ask. I'll ping them and hopefully have an answer for you. Being the weekend and most of the devs are either on vacation or done work for the day (Europe is 5hrs ahead), I don't expect to have an answer soon....

 


Seth Madore
Customer Advocacy Manager - Manufacturing
0 Likes

DarthBane55
Advisor
Advisor

Smart a$$...  😜

 

Thanks for checking. I edited to mention that protecting the whole setup takes over a minute, please mention that to them as well.

Thanks again!

0 Likes

porsbym
Alumni
Alumni

Hi @DarthBane55 , while Protect does sound like a very simple exercise because of undo/redo we actually track quite a bit of stuff behind the scenes. We do a chunk of work plus a bit of work for each setup/toolpath that is affected by the action to keep track of the difference so it can be undone.

 

This explains why it's not instant, and why it gets slower the more operations you have, but that being said, the times you are seeing here sound very excessive so if you encounter this on a part that you can share we would be very interested in seeing is, as there may be bugs involved that make this slower than it needs to be.

 

For reference I just tried with 300 ops on my laptop and Protecting them takes a couple of seconds.

 

One thought though: Have you turned on Automatic In-Process-Stock Generation (see screenshot)?

porsbym_0-1600452300018.png

 

If so, try turning that off, as it does come with an overhead as we check every change to the document if IPS needs updating. And while that is not really necessary for Protect specifically, I don't think we have special handling for that today.

 

/Mark

 

 

0 Likes

DarthBane55
Advisor
Advisor

@porsbym 

Thanks for clarifying, it helps understand.

When you say it takes a couple of seconds for your 300 ops setup, is that for each operation individually, or the entire setup?

0 Likes

porsbym
Alumni
Alumni

The entire setup. 30 folders 10 ops each.

0 Likes

DarthBane55
Advisor
Advisor

Wow, that is impressive.  Could it be my computer is too slow?  I have a decent machine, but maybe your laptop is incredible (lol)?  

PC specs: 

AMD 3700X

16gb ram

RTX 2070

all running on M.2 NVME drive

0 Likes

porsbym
Alumni
Alumni

Those specs are way better than my laptop! 🙂 So not hardware related.

 

Did you check if you had the auto IPS generation turned on?

 

One thing I can think of that may slow things down is if you have very complicated geometry selections (like boundaries selected off 1000 edges or something like that).

 

For a baseline, could you try creating a simple part with some simple operations and then just duplicate them to get a few hundred ops and see if that performs OK? If so, we know it's part specific.

 

/Mark

0 Likes

DarthBane55
Advisor
Advisor

This was prior to the auto IPS feature, so unrelated to that.

I will try your idea of duplicating some operations, sounds like a quick way to know.

I know that those files I am referring to have several models in 1 file.  Because the parts are similar, we just add the new models and repick geometry.  It should not affect this problem though because all the older models are not included in the setup.

Anyway, will try your idea and post back.

0 Likes

mattdlr89
Advisor
Advisor

I'd just like to add that I've also noticed this slow behaviour in a file I was working on about a month ago. It had 3 set ups and probably over 150 operations. I did have IPS on but it would take a long time to protect/unprotect whole set ups. I didn't time it but like @DarthBane55  says it must have been over a minute for a complete set up and up to 5 seconds for a single operation. 

0 Likes

DarthBane55
Advisor
Advisor

@mattdlr89 

Would it be a sharable project by any chance?  If so, that would be cool, then we have a real file case they can look at.

If not, I'll try replicating the issue, but you know Murphy...  

1 Like

mattdlr89
Advisor
Advisor

I should be able to share directly with autodesk.

 

I've just done a test on the file. It has 2 set ups and about 200 ops in all. If I protect or unprotect 3 of the ops it took 25 seconds. If I protected/unprotected an entire set up which is about 50% of the ops (but perhaps 70% of machine time) it took 3.5 minutes. 

 

 

2 Likes

DarthBane55
Advisor
Advisor

Great!  send it as PM to @porsbym and hopefully we see what is going on here once he figures it out!

Thank you very much for your help in this @mattdlr89 !

0 Likes

porsbym
Alumni
Alumni

@mattdlr89 I've sent you a PM with my e-mail address.

 

Thanks for chiming in on this thread!

1 Like

mattdlr89
Advisor
Advisor

@DarthBane55 All done! Hopefully that will be helpful for the Fusion Team. 

1 Like