-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Maya: Collect Render slows down publishing a lot #817
Comments
NoteI should add that I had done a similar optimization for the verbose logging in |
I agree that logging full instance or context data is overkill especially when it's in each plugin. |
Heavy logging still slows down publishing a lot. We may want to reduce the print-out to host consoles, etc. |
Describe the bug
Collect Render is really slow for large scenes with many layers. The only reason why it's slow is due to these logging lines:
That changes a scene that takes 15+ seconds to collect back down to <1 second to collect when they are removed.
The issue also is that with that much logged data somehow the Pyblish Pype UI gets relatively slow. The UI remains repsonsive just fine when not processing (except when looking into the logs of that plug-in) but it gets really really sluggish during processing when needing to log more. For example, with the logs still enabled validation also becomes very slow for my test scene - but with those logs just removed in
collect_render
then validation also becomes close to instant.It's a huge speed difference.
I've quickly tested moving these into an if branch so it only runs if
os.environ.get("OPENPYPE_DEBUG") == "1"
and that also worked.To Reproduce
Steps to reproduce the behavior:
1001-1300
(just so expected files list is large to log)Expected behavior
Should be instant.
Desktop (please complete the following information):
[cuID:OP-3451]
The text was updated successfully, but these errors were encountered: