« Return to Thread: agg profiling

Re: agg profiling

by Petr Kobalíček :: Rate this Message:

Reply to Author | View in Thread

Hi Jim,

2009/5/16 Jim Crafton <jim.crafton@...>:
> Yeah I ran into something like this a while ago. I was using agg for
> text rendering (only fixed width fonts) for a simple text editor and I
> needed accurate text scaling. After I got everything to work
> performance wasn't too hot, so I went and profiled things to narrow
> down the bottlenecks. The final solution was to minimize the calls to
> agg to *just* the exact bit of text that needed to be repaint, using
> clipping, etc.  At one point I even emailed here to ask about some of
> the MMX optimized code, and when I tried that, the speedup was there,
> but not by very much.

Are you archived your MMX code or results? I'm interested with this.
My experience is that font rendering is best if you have large glyph
cache. Of cource this is not possible with transformations or it's
possible but very limited.

>> does anybody profiled his application? Currently I have few ideas how
>> to improve rendering speed in antigrain, but I will be interested
>> about comments if this makes sense. I profiled my library and I see
>> very big usage of trigonometric functions. These functions are
>> generally slow, so here is first idea how to improve code.
>
>
> What about a lookup table for stuff like that? Somewhere I've heard of
> people doing that, though I don't recall exactly how they set it up.

I don't like lookup tables :-)) Problem with lookup tables here is
that how big it must be to give good results? Also there will be big
memory read overhead, so I think that SSE2 code may perform better,
the question is, where to start?

Currently I'm very busy with my thesis, but I want to improve this
area, I really see here space for big improvements

- Petr

> Cheers
>
> Jim
>
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables
> unlimited royalty-free distribution of the report engine
> for externally facing server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> Vector-agg-general mailing list
> Vector-agg-general@...
> https://lists.sourceforge.net/lists/listinfo/vector-agg-general
>

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables
unlimited royalty-free distribution of the report engine
for externally facing server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Vector-agg-general mailing list
Vector-agg-general@...
https://lists.sourceforge.net/lists/listinfo/vector-agg-general

 « Return to Thread: agg profiling