Please expose some form of compression routine
tracked
bd_
Now that we can sync larger amounts of data, it would be helpful to be able to compress that data to minimize network overhead. However, doing compression in Udon is expensive; I'm sure you already have a zlib binding somewhere that you could expose, which would work much better.
Log In
This post was marked as
tracked
ふじた し(fjtsh)
One way to achieve this, just expose
System.IO.Compression
. Nowadays, we already have a way to decode / encode string to byte array (= base64), and retrieve it from servers (= String Downloader).bd_
And, please make it support Color32[], or provide a fast way to convert from Color32[] to byte[] :)
Converting from Color32[] to byte[] before running it through a compressor would take a significant amount of time as it stands in Udon today.