Dan Romero pfp
Dan Romero
@dwr.eth
Animated pfps where the root cause of most crashes
8 replies
10 recasts
123 reactions

typeof.eth πŸ”΅ pfp
typeof.eth πŸ”΅
@typeof.eth
I haven’t had to implement gifs in infinite scroll views so idk what issues come from that but it feels like something that should be pretty strained these days. Clearly not, though, so I’m curious if y’all have shared more technical details r.e. why the issue occurs?
1 reply
1 recast
9 reactions

pugson pfp
pugson
@pugson
gifs in react native flatlist with infinite scroll are awful for performance. i wonder if replacing the pfp renderer with skia would help or not https://shopify.github.io/react-native-skia/docs/animated-images
1 reply
0 recast
7 reactions

Ryan J. Shaw β“‚οΈπŸŽ© pfp
Ryan J. Shaw β“‚οΈπŸŽ©
@rjs
Any idea why MP4 and GIF casts don't cause an issue? Size/quantity of PFPs is presumably the answer right? I think I noticed they are now using CF to resize the PFPs and disable animation, maybe they're testing the logical solution if that's the case...
1 reply
0 recast
0 reaction

pugson pfp
pugson
@pugson
i believe they were unoptimized. lots of animated gifs in an infinite scrolling list with a lot of reactive ui that needs state updates = main thread probably doing fine, but all the useEffects etc when getting rendered concurrently might have blocked the JS thread and caused memory leaks on android. iOS is better in this regard but it still suffers from loading large imagines in a dynamically scaled container
1 reply
0 recast
2 reactions