Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Demolishun3481355d@Biggy I just thought of "deez nutflix". Did not have that on my bingo card today.
-
CoreFusionX340055dBy very definition, nothing that doesn't run on the native code (and no, react native isn't native code), is bound to do worse, unless it's AoT, which javashit isn't, if only for all the intermediate steps.
-
CoreFusionX340055d@Tounai
You can't have a decent video player without direct manipulation of the GPU.
Dunno if reacrapt can do that (don't think so). In any case, they probably are adding just another onion wrapper to GLSurface, exoplayer or whatever. -
Lensflare1709554d@CoreFusionX to be fair, clown languages like JS (language of React Native) can still be used for stuff like netflix without a noticeable performance impact because they access the GPU via an SDK which is written in a low level language.
-
lorentz1524754d@CoreFusionX There's webgl and webgpu, and RN uses a custom runtime with native bindings.
-
lorentz1524754dI'd say the performance of the video player itself will depend more on the robustness of the media processing pipeline and netcode, but the app UI itself mostly depends on the level of abstraction, so the JS runtime would probably cause more performance problems there.
-
lorentz1524754dyou really wouldn't write the video processing code in JS though, that would have to be Webassembly and webgl, or native code, in which case you're probably better off with a native app.
-
Tounai128254d@CoreFusionX the default way of watching Netflix is on a web bowser. I assume that you can use the almost-same player on React native.
-
kiki3529254dno chance in hell, unless everything left from React Native there is but a shell for native code. Been there, done that.
-
Wisecrack997441d@Lensflare "because they access the GPU via an SDK which is written in a low level language.
"
'deep magic' if you will.
Do you think an app like Netflix could be built with react native and still give the same performance?
question