Re: Drawing a lot of SVG images is slow
"'Eric Jensen' via wx-users" <[email protected]> Wed, 2 Apr 2025 08:00:29 +0200
| Newsgroups | gmane.comp.lib.wxwindows.general |
|---|---|
| Message-ID | <[email protected]> |
Hello Quentin, Wednesday, April 2, 2025, 6:36:27 AM, you wrote: VZ>> Also, under Windows, using D2D-based wxGraphicsContext could be much faster than using the default GDI+-based one or GDI. QC> What should I do to use D2D instead of GDI ? wxGraphicsContext *gc = wxGraphicsRenderer::GetDirect2DRenderer()->CreateContext(...); VZ>> You could try using LunaSVG, but normally SVG rasterizing performance shouldn't count anyhow, as the bitmaps should be cached. Drawing 1000 bitmaps is not going to be fast neither, unfortunately, so if you can find a way to precombine them, consider doing this. QC> I'll have a look at LunaSVG. Combining is maybe the key point, I'll also try to find a way to improve that as well. Rendering the SVG each time will always be significantly slower than drawing a pre-rendered bitmap. Eric -- -- Please read https://www.wxwidgets.org/support/mlhowto.htm before posting. --- You received this message because you are subscribed to the Google Groups "wx-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/wx-users/1181035579.20250402080029%40j-dev.de.