Re: [PyMOL] Performance of extended commands vs python function

2019-12-18 Thread Lorenzo Gaifas
Hi Thomas, I'm not sure I get it. Does that mean that `cmd.sync()` is actually not doing anything at all if called outside of `cmd.do()`? Cheers, Lorenzo Il giorno mer 18 dic 2019 alle ore 10:49 Thomas Holder < thomas.hol...@schrodinger.com> ha scritto: > Hi Lorenzo, > > Thanks for the script,

Re: [PyMOL] Performance of extended commands vs python function

2019-12-18 Thread Thomas Holder
Hi Lorenzo, Thanks for the script, and great that you could identify cmd.sync() as the culprit. I looked at the code, cmd.do("cmd.sync()") literally blocks itself until it times out after 1 second. cmd.do() puts commands in a queue, and cmd.sync() tries to ensure that all queued commands have b