On iOS devices that support adaptive frame rate (such as 13 pro max), there will be slight jitter when scrolling the list slowly
On iOS devices that support adaptive frame rate (such as 13 pro max), there will be slight jitter when scrolling the list slowly
This issue can be reproduced in the first list of Instagram App.
I have found the reason, mainly the effect of this code, is this setting necessary?
_collectionView.prefetchingEnabled = NO;
Thanks for the feedback @chengxianghe! Yeah, I was wondering the same when I joined Instagram.
When I looked into it, it seemed prefetching was disabled near the start of IGListKit's development since in all benchmarking tests, it was showing to have lower scroll performance. The vast majority of Instagram's use of IGListKit is for single vertical columns of content, so there doesn't seem to be a huge amount of value in having pre-fetching enabled.
I do wonder if it's worth exposing that flag as an official supported property, so third party apps can toggle it and see if they get greater performance from it. Let me know what you think!
@TimOliver I'm sorry it took so long to see this message. Based on my debugging experience, enabling this setting on devices that support ProMotion improves performance (especially when scrolling slowly). I think it would be more reasonable to open this property to external settings. However, I'm not sure whether enabling this property will conflict with IGList's own refresh mechanism.