5 ms·
This looks great, but it requires all of ThreeJS, even for the backgrounds that are really just some shaders. You don't really need a complete 3D library to jus
by hansworst 5y ago
This looks great, but it requires all of ThreeJS, even for the backgrounds that are really just some shaders. You don't really need a complete 3D library to just render 2 triangles that fill the entire screen and apply a shader to them.
- edmcnulty101 5y agoif you have a direct fiber internet connection to your house page size doesn't even matter.
- bufferoverflow 5y agoI hope you're not a web developer. That's a very bad attitude.
- edmcnulty101 5y agoSorry haha I was being very sarcastic. It didn't covey well in text.
- Sohcahtoa82 5y agoAnd what if I'm on mobile with a spotty connection where I average < 1 mbps?
- stjohnswarts 5y agoMy rule on mobile is if it takes more than 5 seconds to load it's time to hit the X and go somewhere else (unless it's my bank's page or something that's actually necessary)
- noduerme 5y agoThreeJS is a fucking great library, though.
- calibas 5y agoAgreed, it's probably the best library for 3d graphics in JavaScript. That being said, if you want websites that load fast and perform well on a large number of devices, avoid using ThreeJS unless it's absolutely essential.
- noduerme 5y agoI used to use a really great lightweight (5k) library in Flash for simple 3D geometry, polygon shading, etc. (anything simple that could be handled on CPU without uploading anything to GPU; I'm not sure I would attempt to do a full screen terrain with it, but a test would tell). So yeah obviously if you need a couple triangles, look elsewhere than ThreeJS. I'm just saying it's a fantastic library... there's really nothing else equivalent in the ecosystem at this point. It is what Away3D was to Flash, which is a compliment.
- howdydoo 5y agoThat's true, but that doesn't mean you should use it everywhere. Using Three.js to render a single quad is like using Rust+WASM to add two numbers.
- noduerme 5y agoDepends how many times you're gonna add two numbers though, right?
- jokethrowaway 5y agoNot necessarily. If data is moving from JS to Rust too much it may even be slower than just using JS. Also, the simpler the operation, the higher the chance v8 optimises it pretty well.
- tyingq 5y agoThere's an unofficial "builder" here where you could try and just use the parts of three.js that you need: http://marcinwieprzkowicz.github.io/three.js-builder/ http://marcinwieprzkowicz.github.io/three.js-builder/