From: Maxim S. <mcs...@ya...> - 2006-06-21 20:24:31
|
> I moved them out to the class level, and suddenly AGG was much faster (I > also added ras.reset() after drawing each line). Maxim, could you suggest > why this is the case? I'm afraid I don't know how the rasterizer works. It's probably because memory allocations are too expensive on your system. The rasterizer and everything else is designed in such a way that it minimizes the allocs and reallocs. The rasterizer allocates memory in chunks and never releases it until you destroy it. The path_storage and conv_stroke do the same. McSeem __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |