For Programmers: Free Programming Magazines  


Home > Archive > Tcl > October 2005 > Slow windows update









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Slow windows update
Frank

2005-10-25, 7:58 am

Dear list members,

the windows refresh of my tcl/tk software (8.3) is very slow. I use
tcl/tk with vtk (4.2.1) on my w2k PC.

If I switch from another w2k application to my program the complete
refresh of the main application window takes about 30 secs on my quite
new PC (+3GHz)!

The refresh after dragging windows over my application is as well very
time consuming.


Is there a way to invoke an tcl update maybe via the wm command when my
application is the on top ?



Frank-Andr=E9

Donald Arseneau

2005-10-29, 3:59 am

"Frank" <siebert@onco.uni-kiel.de> writes:

> the windows refresh of my tcl/tk software (8.3) is very slow. I use
> tcl/tk with vtk (4.2.1) on my w2k PC.


Your Tcl is somewhat old, but that is probably not the problem.
No-one has answered, probably because there is not enough information
in the question, so I will take a wild guess...

> The refresh after dragging windows over my application is as well very
> time consuming.
>
> Is there a way to invoke an tcl update maybe via the wm command when my
> application is the on top ?


I suspect you may be inserting explicit update commands in your code
to make it work faster, but that only makes it slower. See
http://wiki.tcl.tk/1255

There are many other possibilities though. I suppose the first thing
to try is a program of just:

pack [label .l -text "Hello World"]

and verify that the refresh is fast. Then see what your program
does differently :-)

Maybe you should look at http://wiki.tcl.tk/1526.

If those don't sound relevant, please post again with more details
about your program.

--
Donald Arseneau asnd@triumf.ca
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com