-
Notifications
You must be signed in to change notification settings - Fork 44
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
QML is very slow compared to headless mode #371
Comments
Could you try reducing the Pyblish delay? I know in Pyblish Lite that can help a ton but out of the top of my head I am not sure whether it's also a thing in Pyblish QML. Did a quick search over the code. Pyblish QML does not have this env var. import os
os.environ["PYBLISH_DELAY"] = "0.1" You can lower it even further with the code triggering faster but at the cost of the Pyblish UI appearing much less responsive. In Pyblish QML you could have a look at whether there's any usage of Since there has been a commit to increase a specific schedule time here that was likely to resolve an issue so I assume you can't reduce all usages without errors. There is also |
Yes, this is intentional. The UI is meant to communicate what happens, rather than finish as soon as possible. If the user isn't interested in what happens, that's where the scripting equivalent comes in handy. You could lower these delays; as Roy mentioned they are in there to keep the UI responsive and to make it more clear what happens and in what order. But the exact quantities are subjective and tuned for the most general case. |
oh amazing. That's exactly what i'm after. I've used intentional delays in the past, but prefer |
Thanks for the advice when setting
it's a lot better but not fast enough yet with multiple checks and instances. any clues where i should start looking to remove any more delays? the util.wait appears to be startup related. so changing that doesn't do much. |
most time appears to be spend on QT events. (see bottom snippet)
|
actually tried to set delay to high and no difference in time. update: checked code and only lite is using this env var. |
tried lite, it's running a lot faster than QML which is nice. i'll swap to lite for now . a shame since QML looks nicer QML takes about 5 sec yes it's less responive but it's better than having to wait 2 minutes on big scenes. |
@hannesdelbeke Be aware that at delay 0 in Lite you'll likely run into the case that if a single plug-in is actually slow to process that during that processing the UI might lag and still show the previous plug-in as if it was in the running state. This might make users wrongly think it's the other plug-in is still processing. |
good to know don't think it matters in my scenario, since my main objectives are:
the speed of how long a single plug takes is a TD thing, since users cant change anything about it. |
When running (openmaya) checks on a few cubes in maya.
it takes 10 seconds in QML, but is instant in headless mode
headless. <1 sec
QML takes about 20 sec !
pyblish lite also has this issue
The text was updated successfully, but these errors were encountered: