Here's Pathfinder rendering a port of the NanoVG demo, showing off its new support for HTML canvas features: https://github.com/servo/pathfinder/blob/master/examples/canvas_nanovg/src/main.rs … (Most of the rendering time goes to Gaussian blurs which have to be spec compliant in Pathfinder, unfortunately…)pic.twitter.com/P8SAZTw55A
Also, there’s the fact that NanoVG doesn’t even draw text as paths—it draws them as a bitmap using stb_truetype and caches the results, so it’s just blitting rects. PF is drawing every glyph as true vectors, which is going to be slower. I want to add a glyph cache at some point.
-
-
That demo is supposed to be more of an example of how to use the library as opposed to a performance benchmark.
-
Thanks for taking the time to explain all that. Considering doing a text editor on top of pathfinder based largely on watching your talk where you were zooming that window full of text. Does that use case seem reasonable in its current state?
- 2 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.