I’m keen to go quite deep, as this is going to be an important issue for our project. Any great books that go through modern JS low levels in a clear way, and how they relate to perf?
I’ve already got a designer who focuses on optimizing our models as much as possible. I’m keen to learn what I can do on the client side.
Usually devtools heap monitor and performance tools are sufficient to detect bottlenecks.
What is your favourite book / resource for going deep with optimising JS/Three.js performance?
It depends on the type of project you’d like to create. Optimisation of a product configurator will focus on entirely different aspects than optimisation of a game (and in both cases what you optimise may also depend on the context of your app / what you’d like to show to the user / what the user would care about / what and how they can interact with.)
[…] books that go through modern JS low levels […]
- Trigger garbage collection (GC) as rarely as possible (ie. don’t create objects when unnecessary.)
- Don’t leak memory (ie. remove references, otherwise GC won’t be much helpful.)
- If you need a complex algorithm - move it to a worker / backend whenever possible.