wxTestSVG2 compares appearance and performance of NanoSVG and LunaSVG,
when used as a rasterization tool for wxBitmapBundle
.
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.
- CMake v3.24 or newer.
- wxWidgets v3.2.0 or newer.
- LunaSVG is included in the repo (physically, not as a GIT submodule).