jPCT-AE - a 3d engine for Android > Support

Can't deserialize object Error

<< < (2/2)

EgonOlsen:
Serialized format is optimized for speed, not for size. The basic idea was to zip it if it's too large, which can be done on the fly on a server as well using gzip and loading it via GZIPInputStream.
In your case, the merging of objects adds some additional "white space" to the data. You can get rid of it by calling compress() on the merged mesh. That should bring the file size down by some amount.

About the closing/re-opening thing...i'm not sure. All that jPCT does is to detect the context change and upload the data again if needed. I don't know why Rajawali is so much slower.

Navigation

[0] Message Index

[*] Previous page

Go to full version