Saving texture data as fille?

  1. Take a look at Persistent Asset Storage - How to save models & textures to users machine - you can save these files on user’s computer and make downloading and loading even faster (thanks to local SQLite and IndexedDB.)

  2. There’s probably no point in saving Texture’s JSON to a file. The same applies to the Material - shader compilation can take a moment, but unlikely to take as much as 30seconds.
    The main part of the Texture, the image, is kept in img - which is just an Image object holding bitmap data. If you have super-high quality images that take ages to process, you can consider loading low-quality versions first, and fetching HD images on-demand.

1 Like