-
Notifications
You must be signed in to change notification settings - Fork 109
Description
There's a noticeable input lag when pressing buttons on Android with every device I have. Granted they're not the fastest out there, but neither will be the average device where IO will be installed, besides, it happens on the emulator as well.
If I had to eyeball it, I wanna say there's about a 100ms delay between the touch and the ripple animation which makes the app look sluggish and not reactive. I think this is due to crossing the React Native bridge.
This is eb86a36 running on the emulator: https://imgur.com/a/8K2gZzk
and this is a patch using BaseButton
from react-native-gesture-handler, which doesn't cross the bridge. Please ignore the lack of styling for now: https://imgur.com/a/ZBvwLdG
It makes a world of difference in how the app's performance is perceived.
Smartphone
- Device: One Plus One, Xiaomi Mi A1, Emulator
- OS: Android 9, Android 10