Command Line Interface (CLI) much slower compared to starting in separate python environment

Do you see a difference in update rate if you don’t continuously print out a lot of text?

If that does not help then the best is to use a Python profiler instead of trying to guess what takes a long time (see how we did it here).