-
Notifications
You must be signed in to change notification settings - Fork 103
Description
Hi! While I really like the drawing style of the characters and want to use them to identificate users instead of profile pictures, I cannot do so. Unfortunately the render-time of a single bighead is so high, that I simply cannot use it in production (yet). I also created a screen where the user can customize his BigHead, which renders even slower.
I am using the react-native package of this library, but since the SVGs are the same this issue should also apply to this repository.
I'm talking about noticeable delay in initial rendering (mounting) (see this demo), and generally really slow renders on re-rendering when a prop changes (see this demo). Those are definitely UI thread lags, so the vectors must be composed using expensive techniques, such as clipping, which could be optimized.
I am trying to debug why this renders so slow, as normally vector rendering should be really fast. Now to my actual question(s):
- What could possibly be the cause of those incredibly slow renders?
- How can I debug/perf-measure this?
- Could someone here maybe take a look at this and help me figure this out so I can use this in production?
All kinds of help appreciated 👍