> Diffamp_test3.ps is not a particularly aggressive example.  I have
> some text-heavy documents in xcircuit with refresh rates < 1fps.

I think there might be possibilities for some performance improvement.
An easy one is to obtain the glyph dimensions once in loadfontfile, instead of 
asking cairo again and again for the dimensions.
I also see there is a cairo_set_scaled font, but I am not yet sure exactly what 
it does, but it might prevent the font from constantly scaling?
Also instead of drawing one character at the time maybe call cairo_show_glyphs?

> 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.

Erik.


_______________________________________________
Xcircuit-dev mailing list
Xcircuit-dev@opencircuitdesign.com
http://www.opencircuitdesign.com/mailman/listinfo/xcircuit-dev

Reply via email to