Python threads do not run in parallel. To get more stuff to run in parallel you'll need to run stuff in different processes. That way you can get 1 process running per core and if need be, you can multi thread in each depending on what else you need done.
I'd move the camera stuff one one processes, the controller input to another process and whatever else to a main process and you have another core left of other stuff you may want to do.
More about python parallel processing (or lack thereof) here:
https://realpython.com/python-concurrency/
I'd move the camera stuff one one processes, the controller input to another process and whatever else to a main process and you have another core left of other stuff you may want to do.
More about python parallel processing (or lack thereof) here:
https://realpython.com/python-concurrency/
Statistics: Posted by memjr — Thu Aug 22, 2024 7:57 pm