3 ms·
I was experimenting with using Vello for a project just the other day. Drawing over ~5000 rectangles it seems to result in all the rectangles disappearing from
by therein 4y ago
I was experimenting with using Vello for a project just the other day. Drawing over ~5000 rectangles it seems to result in all the rectangles disappearing from the screen but that aside it was a great experience.
It is way faster than Pathfinder, and Macroquad is faster than Pathfinder. Pathfinder was overall a good experience except it wasn't that easy to get started but once things were set up, it was pleasant especially the API with text alignment etc.
For some reason Macroquad seemed to have the best frame rate with all those rectangles (OHLC candles if anyone is wondering -- 3-4k of them being dragged around). Vello looked like it most definitely would beat Macroquad but instead of dropping the framerate it looks like it drops the rectangles.
- raphlinus 4y agoIt's possible you ran into problems with large pathtags, fixed by [235], but that hasn't been merged yet. With that and some other tweaks (we still have to manually adjust buffer sizes, but that will soon be dynamic again as well), we are able to render the paris-30k test file, which has ~50k paths and almost a million path segments. We will also soon be special-casing rectangles. Might be worth rerunning your experiment in a few weeks when all this has landed. In any case, glad for your interest! [235]: https://github.com/linebender/vello/pull/235 https://github.com/linebender/vello/pull/235