Agg Optimization scheme

Source: Internet
Author: User

excerpt from:http://bbs.csdn.net/topics/360226333

1)C + + template interface is not normalized

2) Font

In addition, it is recommended that the Font section be renamed Optional because the freetype2 itself is already very good.

Agg just use the outline of freetype2, but sometimes the font default output is the dot matrix, no contour, this is agg font display, such as the size of the lattice SUNSIM.TTC the font will take precedence over the bitmap font, unless the bitmap font is turned off to output outlines.

no font feature can be absorbed in 2D graphics optimization improvement.

modern image processing uses +the format of the bit pixels is sufficient,2Dgraphics can be processed without the need to support a variety of pixel formats, such as565,555,and the -bit ofRGBformat, I think I just need to concentrateRgba/bgrawill be sufficient(I am more happyHuanBGRAformat), because the physical display output when the specific conversion will be very fast, not to mention the hardware acceleration function automatically completed.

3)skia do integer optimization must be a little better temporarily

4) fixed-point integer

Interface parameters can be integer optimized

If you can put AGG also do the necessary fixed-point integer, the effect will be superior, the simplest optimization is to define double=float and then compile to improve a lot of speed, because float is much faster than double -- (not many people know that).

For example , Freetype2 's 26.4 or 16.16 fixed-point integer to implement floating-point arithmetic makes freetype2 have very good effect, which is also agg can be emulated in the place, once the fixed-point number up the point and floating point difference will be very obvious.



Agg Optimization scheme

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.