-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changing Filters with Sliders #3
Comments
Have you tried to use the gl-react-image component inside? |
Yes I did - I found no difference in performance (in fact it may have been a little worse). |
wierd, it works just fine on a s6 and s4 with android.. are you also using native sliders or custom UI sliders? (i have used custom ones and they made it all pretty slow on Android) |
I'm testing on an iPhone 6s+, iPhone 6s, and iPhone 5. I haven't tried it on Android. I'm using native sliders. My filter variables are stored in an object as described above. I am using the immutability helper (https://facebook.github.io/react/docs/update.html) to update the state of the particular key I'm trying to update with the slider. How else do you recommend structuring this for it work? |
I guess you are running the full set of functions including shouldComponentUpdate() and so on? Could you try to create a plain simple component with a state for every params and run it? I dont have a iPhone to test with here right now. so that i would have to test out next week. |
Cool I will try it - thanks for the advice. It's good to know that nesting multiple nodes doesn't affect performance in any way. |
np, let me know if it works out with a plain plugin |
@sscaff1 got it working? |
closing thisone as it is aged, no response.. |
I was wondering if you had any suggestions on performance. On an iPhone 6s+ it seems to do ok, but on iPhone 5 it's very choppy. Any ideas on how to correct?
Render part of code:
I have an option to select each value (sepia, hue, saturation, etc.). I use the slider to apply the filter. I setState to change the value.
My imageFilterProps is an object that has all of the keys you specify in the docs. The component works but it's slow on older phones. Any ideas?
The text was updated successfully, but these errors were encountered: