Releases: xaroth8088/react-planet
v1.5.1
v1.5.0
This release moves the texture generation to happen from inside a web worker, which unblocks the main thread and sets us up to be able to use pthreads in the future.
v1.4.0
Now uses SIMD to greatly speed texture generation! Also, a plethora of package updates to go along with that.
More optimization work
Do you know what's faster than a faster noise library? Calculating noise less often. And also a faster noise library.
Because normals are now calculated slightly differently (as part of this optimization work), some planets may not look exactly like they did in 1.2.0 - but they'll be close enough that probably nobody will actually notice, hence the minor version bump.
Smaller textures
Three of the four textures generated by the library basically ignored the alpha channel anyway, so I've updated things to no longer generate that unused channel for those cases. Bumped minor version on the off chance that this could cause problems for some clients.
Minor Optimization
Adds partial protection against loading the wasm module more than once, which will help reduce memory utilization (especially when re-rendering the same instance of the component due to props changes).
Moves texture generation to happen in native code
Texture generation now happens entirely in the native layer. This prevents a lot of overhead that was happening as the texture generation process switched back and forth between JS-land and native-land. Rough benchmarking puts this approach somewhere in the 10x-12x faster range.
At this point, the SimplexNoise generation takes the vast majority of the runtime. So if you've got a faster 3d noise generation algorithm, drop me a line. :)
The interface is unchanged, but the changes under the hood (e.g. changing from Simplex noise to OpenSimplex noise; moving more work into the native layer) are significant enough that I felt it warranted a minor version bump.
Initial release
Initial release