cryptovoxels / issues

🐞 Bugs and issues to be resolved on cryptovoxels
5 stars 1 forks source link

Provide compressed textures from image proxy server #83

Open bnolan opened 4 years ago

bnolan commented 4 years ago

Reduces memory consumption on mobile because textures don't need to be decompressed into raw in RAM.

punkoffice commented 4 years ago

More info here https://doc.babylonjs.com/resources/multi-platform_compressed_textures Just need a script on the server to process any new images. Its not instant, but that shouldn't matter. By default the client will use the original JPG/PNG if a compressed version doesn't exist yet. Also, take note that GLB files don't contain GPU compressed textures. You'd need to use GLTF with separate textures.

ghost commented 4 years ago

This might be a quick win if easily doable.

ghost commented 4 years ago

Here are some images not being compressed

image

See: https://webpagetest.org/result/200607_F9_17f4b031ccc6ac79b099c6647175b917/2/performance_optimization/