LionHeart123 / pyscripter

Automatically exported from code.google.com/p/pyscripter
0 stars 0 forks source link

wx/tk remote engine results in constant high CPU usage #710

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

I use latest PyScrippter on XP, with Python 2.7

When I set wx or tk remote engine, CPU usage is constantly high regardless I 
don't do anything in editor. If I use "just simple" remote engine there is no 
issue.

Cheers

Original issue reported on code.google.com by klo...@gmail.com on 6 Dec 2012 at 6:11

Attachments:

GoogleCodeExporter commented 9 years ago
The wx and Tkinter engines use a thread that continuously checks for messages 
between pyscripter and the engine, so that the main thread is not blocked.  
Apparently this loop takes some CPU time despite the fact that there is a sleep 
command in the loop. 

Original comment by pyscripter on 6 Dec 2012 at 10:41

GoogleCodeExporter commented 9 years ago
OK, I just read FAQ about matplotlib and then set remote engine to wx, when I 
noticed this "issue".
I guess I could set engine to wx or tk only when I intend to use interactive 
mode

Thanks for explanation

Original comment by klo...@gmail.com on 6 Dec 2012 at 10:59