https://gist.github.com/BenLubar/10977a03fa4bd3ba10cd8b1d9b90607a
Anyone know anything about webassembly optimization?
can I make wm.wasm smaller or is 1.1 kilobytes the lowest it can go?
Discussion
https://gist.github.com/BenLubar/10977a03fa4bd3ba10cd8b1d9b90607a
Anyone know anything about webassembly optimization?
can I make wm.wasm smaller or is 1.1 kilobytes the lowest it can go?
hang on why does the soulframe wiki call this "simplex" this is perlin
where does the perlin noise permutations array come from
like is it a specific random number generator with a specific seed?
@ben it's not entirely arbitrary, it forms a single loop when self-referencing recursively and the permutation is apparently a studied one; but I don't understand the specifics beyond that
@efi could I write code smaller than 256 bytes to generate the permutation is why I'm wondering
@ben maybe? I think there's an implementation that did that somewhere, but I didn't understand it
I guess I could save a few bytes by removing the year progress calculation but that's probably going to be eventually useful if I want to position the sun or something