Skip to content

Comparing NanoSVG and LunaSVG for wxBitmapBundle

Notifications You must be signed in to change notification settings

PBfordev/wxtestsvg2

Repository files navigation

About

wxTestSVG2 compares appearance and performance of NanoSVG and LunaSVG, when used as a rasterization tool for wxBitmapBundle.

wxTestSVG2 Screenshot

The value of #define WXSVGTEST2_BENCH_FULL (in svgbench.cpp) affects what is benchmarked: 0 means that the benchmark will include only wxBitmapBundle::ToBitmap() times while non-zero means the benchmark will also include time needed for creating wxBitmapBundle from an in-memory SVG.

Surprisingly, LunaSVG seems consistently noticeably faster when using on popular icon sets (Tango, Flat Color, Fluent UI, or Material Design; bundled in the SVG folder) when testing at resolutions expected for GUI icons, regardless of WXSVGTEST2_BENCH_FULL value.

Tested only 64-bit release build on Windows with MSVS v17.8.5 and GCC 13.2.

Build Requirements

  • CMake v3.24 or newer.
  • wxWidgets v3.2.0 or newer.
  • LunaSVG is included in the repo (physically, not as a GIT submodule).

Licence

wxWidgets licence

About

Comparing NanoSVG and LunaSVG for wxBitmapBundle

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published