What´s the cost (Size) of Elements
Hey Snapchat Team,
Can you provide me with an overview that hints out the cost of elements in terms of datasize?
For example: placing a 2D Sprite is much less dataconsuming than placing a Billboard or a particle system ...
I am just starting to build lenses and it would be very helpful to know in advance which assets turn out "bigger" than others.
Thanks alot.
Cheers L.
Hi there, generally speaking Textures are going to be more expensive in size on disk and memory (both 2D Sprite and Billboard utilize textures). And textures that are animated are probably the biggest culprits for size on disk and memory. The best thing you can do with textures is make sure they are compressed and are not larger resolution than they need to be. Refer to the 2D optimization here for strategies:
https://lensstudio.snapchat.com/guides/2d/2d-optimization/
thank you.