pex-renderer icon indicating copy to clipboard operation
pex-renderer copied to clipboard

Reduce area lights data size

Open vorg opened this issue 6 years ago • 5 comments

Currently it's one big JS array in a js file that weights 200kb. Zipped it's still 77kb. Can we convert it to a binary blob?

It's 20k floats. If i can encode it as 16bit half floats = 40k + 37% = 54kb (base 64 is up to 37% larger). Hmmmm. And that's assuming this precision is good enough.

vorg avatar Dec 26 '18 06:12 vorg

More research needed how others are handling this.

vorg avatar Sep 05 '23 14:09 vorg

dds textures are 32kb each, if we can convert/parse them properly as they're float16 encoded.

dmnsgn avatar Sep 14 '23 15:09 dmnsgn

that would require copying them to assets in nodes right?

vorg avatar Sep 14 '23 16:09 vorg

that would require copying them to assets in nodes right?

yes, separate assets

dmnsgn avatar Sep 14 '23 18:09 dmnsgn

Most promising solution is to use dynamic imports and bundle splitting.

vorg avatar Jul 02 '25 14:07 vorg