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
-
Demolishun3497086d@Biggy I just thought of "deez nutflix". Did not have that on my bingo card today.
-
CoreFusionX349286dBy 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.
-
CoreFusionX349286d@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. -
Lensflare1744985d@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.
-
lorentz1517485d@CoreFusionX There's webgl and webgpu, and RN uses a custom runtime with native bindings.
-
lorentz1517485dI'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.
-
lorentz1517485dyou 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.
-
Tounai134685d@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.
-
kiki3518885dno chance in hell, unless everything left from React Native there is but a shell for native code. Been there, done that.
-
Wisecrack947071d@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