Dan Romero
@dwr.eth
Animated pfps where the root cause of most crashes
42 replies
29 recasts
296 reactions
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
17 reactions
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
8 reactions
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
@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