6 ms·
So why would one use this over something battle-tested like Skia ? https://skia.org/ https://skia.org/
by lenkite 6y ago
So why would one use this over something battle-tested like Skia ? https://skia.org/ https://skia.org/
- unwind 6y agoIn the (brief) benchmark in the PDF posted by @DuncanMak says FastUIDraw is around 5-8 times faster than Skia.
- throwaway546456 6y agothe slides are from 2016. I'm wondering how performance comparison would look like these days with metal or vulkan rendering backends.
- The_rationalist 6y agoFrom what I recall, don't expect more than 20% performance improvements with Vulkan on common 2D scenes
- kllrnohj 6y agoNote that the test scene would benefit heavily from draw batching, but was setup in such a way that may have just defeated the batching logic in Skia but not the one in FastUIDraw. It wasn't a very common UI scene, so it wouldn't be expected that other libraries had optimizations for that type of content (specifically with the "everything is slightly rotated" part) It was also a scene that curiously didn't involve any paths or shapes other than rectangles, which is where GPU-accelerated canvas' all really run into trouble. Also note that the presentation was from 2016, and many of these libraries (such as Skia) see heavy ongoing work so that data is all quite outdated and unreliable at this point.
- johnnycerberus 6y agoSkia is an awesome C++ library.
- kevingadd 6y agoThey wouldn't, IMO. Skia is robust, has a large feature set, has exhaustive automated tests, is well maintained, and portable. Even if this library is "faster" (for its specific use cases), Skia is well optimized and used in lots of performance-sensitive software.
- postalrat 6y ago"Faster" could also mean running at an acceptable speed on hardware where skia would be too slow.
- zepto 6y agoSkia also has a relatively unstable api, is hard to build, and is dependent on Google.
- BearOso 6y agoI concur. The documentation is very incomplete. I know it can do a lot of stuff, but I wouldn’t know how to make it do it. It doesn’t seem to be intended for wide use, more like “here’s what we use, it’s open source, do whatever, but we’re not going to help you.”
- kllrnohj 6y agoFair criticisms but it's not like Fast UI Draw is any different on any of those. Unless you're calling its API stable because the library has been abandoned, but in that case you could also just never update your copy of Skia, too.