Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
carloBarazzetta authored Dec 8, 2020
1 parent 498a5e8 commit 1cdd10e
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Three engines to render SVG (GDI+, Direct2D or Cairo) and four components to simplify use of SVG images (resize, fixedcolor, grayscale...)

### Actual official version 2.2.0 (VCL+FMX)
### Actual official version 2.2.1 (VCL+FMX)

| Component | Description |
| - | - |
Expand All @@ -25,17 +25,17 @@ There are three implementation: the "Delphi one" based on Martin's work which is

## Performance comparison

This table shows the performance of the three rendering engines tested with SVGExplorer, using a significant amount of icons from different sets, rendered at 48x48 pixels.
This table shows the performance of the three rendering engines tested with SVGExplorer, using a significant amount of icons from different sets, rendered at 32x32 pixels.

Count | Icon set | D2D | Cairo | TSVG | D2D | Cairo | TSVG |
--: | :-- | --: | --: | --: | --: | --: | --: |
996 | Font-Awesome | 1469ms | 1218ms | 1470ms | 121% | 100% | 121% |
655 | Papirus | 1219ms | 1656ms | 1890ms | 100% | 136% | 155% |
5366 | Material-Design | 12016ms | 9594ms | 10531ms | 125% | 100% | 110% |
Count | Icon set | TSVG | D2D | Cairo | TSVG | D2D | Cairo |
--: | :-- | --: | --: | --: | --: | --: | --: |
997 | Font-Awesome | 1219ms | 1093ms | 2250ms | 111% | 100% | 205% |
655 | Papirus | 812ms | 1078ms | 3594ms | 100% | 132% | 442% |

This comment has been minimized.

Copy link
@luebbe

luebbe Dec 9, 2020

Collaborator

I wonder why Cairo needs twice as long for the font-awesome and papirus tests as in the first comparison. Did you run the benchmarks at least two-three times until they are stable? If it's only one run, the loading overhead for the dlls may play a role.

This comment has been minimized.

Copy link
@carloBarazzetta

carloBarazzetta Dec 9, 2020

Author Contributor

Yes, I repeated the test three times... try yourself compiling SVGExplorer with TSVG and with Cairo and select the SVGIconImageList\Demo\Papirus-icons folder. Maybe there is another reason in my machine...
After opening the folder the application shows the loading time in left-bottom corner:
image

This comment has been minimized.

Copy link
@luebbe

luebbe Dec 9, 2020

Collaborator

Interesting, Here are my results for the papirus benchmark. Each run four times inside the IDE.
Run the application once, and change into the papirus directory four times:

D2D: 1890,1703,1672,1641 (from IDE)
Cairo: 1938, 4563, 4625, 4453 (from IDE)
TSVG: 3859,1344,1203,1235 (from IDE)
TSVG: 2292,875,891,875 (from Explorer)

It looks like #1 is always affected by some caching and the other three are pretty consistent. Funny thing is that the first one with Cairo is the fastest...

5366 | Material-Design | 5953ms | 8922ms | 9156ms | 100% | 149% | 153% |

As you can see, the three engines perform differently depending on the icons and their complexity. There's no clear favourite.
As you can see, the three engines perform differently depending on the icons and their complexity, but the native TSVG implementation is the best implementation, thank's to many performances changes to pascal code!

### Available from Delphi XE6 to Delphi 10.4
### Available from Delphi XE6 to Delphi 10.4 (32bit and 64bit platforms)

![Delphi 10.4 Sydney Support](/Demo/Images/SupportingDelphi.jpg)

Expand All @@ -57,8 +57,13 @@ The [SVG Icon Explorer](https://github.com/EtheaDev/SVGIconImageList/wiki/SVGIco
Follow the [guide in Wiki section](https://github.com/EtheaDev/SVGIconImageList/wiki) to known how to use those components to modernize your Delphi VCL or FMX Windows applications scalable, colored and beautiful with few lines of code.

### RELEASE NOTES
08 Dec 2020: version 2.2.1 (VCL+FMX)
- Added 64bit platforms for packages
- Minor fixes (empty except blocks)
- Fixed TSVGIconImage inherited color
- Fixed repaint for FMX version

23 Sep 2020: versoin 2.2.0 (VCL+FMX)
23 Sep 2020: version 2.2.0 (VCL+FMX)
- Added "Cairo" SVG Engine
- Added AntialiasColor to perfect antialias effect
- Added ImageIndex property editor for SVGIconImage
Expand Down

0 comments on commit 1cdd10e

Please sign in to comment.