[issue41299] Python3 threading.Event().wait time is twice as large as Python27

2020-07-21 Thread SD
SD added the comment: So there is no advised way around this then. I am currently using time.sleep() to hit my 60hz. -- ___ Python tracker <https://bugs.python.org/issue41

[issue41299] Python3 threading.Event().wait time is twice as large as Python27

2020-07-15 Thread SD
SD added the comment: I have tested this both on vs code terminal and cygwin for windows. 3.8.2 : python -m test.pythoninfo Python debug information Py_DEBUG: No (sys.gettotalrefcount() missing) _decimal.__libmpdec_version__: 2.4.2 builtins.float.double_format

[issue41299] Python3 threading.Event().wait time is twice as large as Python27

2020-07-14 Thread SD
New submission from SD : The overhead in Python 3 for threading.Event().wait() is much larger than Python 2. I am trying to run a script at 60hz which worked correctly in Python2 but does not in Python 3. Here is a minimal example to demonstrate: #!/usr/bin/env python import threading