4 ms·
Not true! Play my game Falcross (https://www.falcross.com https://www.falcross.com) on iOS or Android and tell me if you feel any lag. It's written in React Nat
by rawrmaan 8y ago
Not true! Play my game Falcross (https://www.falcross.com https://www.falcross.com) on iOS or Android and tell me if you feel any lag. It's written in React Native. Less than 3% of the UI is native code.
You CAN make highly performant software, even games, with React Native. You just need to take the time to truly understand the platform, and you will reap massive benefits.
- hardwaresofton 8y agoThank you so much for posting this. Did you write about your work anywhere? There are tradeoffs to picking frameworks like React Native & co. but there just aren't enough people writing about their usecases and the performances they saw/tuning they were able to do. Eventually I'd like to make an example app in ~3 of the alternatives (native, nativescript, flutter) and use appium to do comparisons and various timing.
- rawrmaan 8y agoI haven't written much about it except in comments here on HN. I agree there should be more out there, I hope I can find the time to do some writing.
- ReverseCold 8y agoCool! I play that game. Here's a very unscientific test (showing GPU usage) I did on the Note 8 switching between menus really quickly. It's barely noticeable (if at all) for me, but it certainly shows on older phones. Canvas for Android (Native): https://i.imgur.com/5mWueG7.png https://i.imgur.com/5mWueG7.png Falcross Menu: https://i.imgur.com/DpKVNDK.jpg https://i.imgur.com/DpKVNDK.jpg (It's also important to note that this isn't noticeable at all on iOS. The app is buttery smooth with a consistent framerate on iOS.) Other than that, a few nitpicks: The "recently played" icon at the top is clipped for me, the energy/star/circle icons at the top flicker when you switch views, etc. Things like that basically don't happen if you use "real" native development (or Flutter) with "real" native components.
- mankash666 8y agoThe big question is "what impact does it have on the bottom line"? If the react native app is sufficient for it's intended audience, then learning dart/flutter, or 2 native platforms is academic at best, as it's unlikely to sway revenues. Maybe certain use cases can never be handled in react native, but for most, it's sufficient to not impact revenues. At the end of the day, the user doesn't care about your programming stack, only results, and react native has been deployed at scale by large corps to demonstrate viability for most, if not all cases
- rawrmaan 8y agoHi there, thanks so much for the bug reports! Would love to see a screenshot of the clipped icon if you could e-mail it to me at rawrmaan@gmail.com. The flickering when viewing lightbox/modal views is actually due to my navigation library, react-native-navigation, which is otherwise excellent. I believe they're fixing that in their v2 release, at which point those transitions should be indistinguishable from native. I've also made a ton of progress on Android performance in the past month, including the mindblowing realization that I had set hardwareAccelerated=false in my app's manifest over a year ago. The game should now be very smooth in all views, even on very low-end Android devices :)