Hello Erik,

However, I found, oddly, that diffamp_test3.ps would, if I zoomed in
about 3 or 4 times, suddenly take about 2 seconds to redraw the screen.
I can see it redraw from top to bottom.  It's not in the drawwindow
routine at all.  However, that might not be a good measure because
anything passed to the X11 server can be handled long after drawwindow()
has returned.  But I still don't get what was so slow there, and why
it happens at one particular zoom level.  Not counting that one weird
slow refresh, I get around 10 fps on average.

Very strange.

Yes.  Even stranger is that I re-ran xcircuit on the same document
today and suddenly it was very fast and did not show the same problem.
I think I know what the issue is.  I have a 3D printer and am using
a "professional" tool to drive it.  This bit of software has serious
memory leaks and will overflow my 8GB RAM if I leave it open for too
long without erasing everything off its screen and shutting it down.
In addition to having memory leak issues, it also runs an OpenGL
window for the display of the parts to be printed.  It's quite possible
that the OpenGL window is taking up video resources and not giving
them over to cairo.  Whichever one is the root of the problem, it
clearly made a huge difference to xcircuit/cairo performance after I
shut it down.  It's such a huge difference that I'm sure you're
wondering why I made such a big deal about how slow the cairo
interface is!  I don't think I would have said anything if I saw it
the way it is performing right now.

The more I think about it, the more I believe that the video card
isn't sharing (or can't share) resources between an OpenGL and a
cairo application.  There could also be a complicating issue with
the window manager, since the programs were on separate "pages" of
the window manager and so in some virtual sense they overlap positions
on the screen.  I will investigate further.

                                                ---Tim

+--------------------------------+-------------------------------------+
| R. Timothy Edwards (Tim)       | email: t...@opencircuitdesign.com    |
| Open Circuit Design            | web:   http://opencircuitdesign.com |
| 22815 Timber Creek Lane        | phone: (301) 528-5030               |
| Clarksburg, MD 20871-4001      | cell:  (240) 401-0616               |
+--------------------------------+-------------------------------------+
_______________________________________________
Xcircuit-dev mailing list
Xcircuit-dev@opencircuitdesign.com
http://www.opencircuitdesign.com/mailman/listinfo/xcircuit-dev

Reply via email to