J
Joel VanderWerf
Hi, all,
On linux, I developed a little Tk animation using TkCanvas, and then I
ran it on windows. It's much slower on windows than on linux (maybe,
5fps versus 30fps). Same machine, but ruby-1.8.4 on linux, 1.8.5 on windows.
The Windows Task Manager says the process is only using a tiny fraction
of cpu, so that's not the problem.
The canvas is currently just about a dozen objects, nothing special
(polygons, lines, etc.).
It does have two threads, one doing Tk.mainloop, and one sending
commands to the canvas. Increasing the priority of the command thread
makes it worse: Tk doesn't even seem to run--no windows. Decreasing the
priority makes it even slower.
Nothing is waiting on terminal input (I know that's a problem on windows).
I tried using a TkTimer instead, but couldn't get it to work at all.
The ruby Tk animation demos seem to run fine, but they are simpler.
I realize this information is next to useless, unless someone has seen
something very similar before.
Is there some setting that controls the rate at which widgets handle events?
Any ideas before I start chopping stuff out to get down to a small test
case?
On linux, I developed a little Tk animation using TkCanvas, and then I
ran it on windows. It's much slower on windows than on linux (maybe,
5fps versus 30fps). Same machine, but ruby-1.8.4 on linux, 1.8.5 on windows.
The Windows Task Manager says the process is only using a tiny fraction
of cpu, so that's not the problem.
The canvas is currently just about a dozen objects, nothing special
(polygons, lines, etc.).
It does have two threads, one doing Tk.mainloop, and one sending
commands to the canvas. Increasing the priority of the command thread
makes it worse: Tk doesn't even seem to run--no windows. Decreasing the
priority makes it even slower.
Nothing is waiting on terminal input (I know that's a problem on windows).
I tried using a TkTimer instead, but couldn't get it to work at all.
The ruby Tk animation demos seem to run fine, but they are simpler.
I realize this information is next to useless, unless someone has seen
something very similar before.
Is there some setting that controls the rate at which widgets handle events?
Any ideas before I start chopping stuff out to get down to a small test
case?