I am developing an application, which is written in Python and uses
Snack (version 2.2.10, installed from sources), together with Tkinter
(Tcl8.4 and Tk8.4).
The environment, in which it runs, is Debian Etch (Testing).

My application needs to process sound data at real time.  There is a
process which reschedules itself (using tk.after(), where tk is
Tkinter.Tk()).

I noticed that after doing things with the Sound object (some processing
which takes 200mSec), this process gets rescheduled with delay of about
800mSec.  When my processing takes much shorter time than the above, the
rescheduling happens after almost 1000mSec.
The process in question also updates the GUI (via Tkinter), but
according to my measurements, the operations take very short time.

I also noticed that when I obscure part of the GUI and then bring it
back to top, it takes few tenths of second to refresh the newly-exposed
areas.  This time is highly variable - sometimes the refresh occurs
almost instanteously, sometimes it takes this much time.

The evidence points at some process, unknown to me, which gets scheduled
in Tkinter's main loop, and which takes about 1sec.  While this process
is executing, the GUI is unresponsive and my own processes execute later
than their scheduled times.

Any advice how to find that process and figure out what it does and why?

                                        Thanks,
                                             --- Omer

-- 
Every good master plan involves building a time machine.  Moshe Zadka
My own blog is at http://tddpirate.livejournal.com/

My opinions, as expressed in this E-mail message, are mine alone.
They do not represent the official policy of any organization with which
I may be affiliated in any way.
WARNING TO SPAMMERS:  at http://www.zak.co.il/spamwarning.html

לענות