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
-
Demolishun3491459d@Biggy I just thought of "deez nutflix". Did not have that on my bingo card today.
-
CoreFusionX342359dBy 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.
-
CoreFusionX342359d@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. -
Lensflare1716059d@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.
-
lorentz1526858d@CoreFusionX There's webgl and webgpu, and RN uses a custom runtime with native bindings.
-
lorentz1526858dI'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.
-
lorentz1526858dyou 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.
-
Tounai130558d@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.
-
kiki3532658dno chance in hell, unless everything left from React Native there is but a shell for native code. Been there, done that.
-
Wisecrack998645d@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