For security, we are planning to load all our textures from a secure CDN using temporary URLs. These URLs will expire after15 min typically. From what I can tell, Babylon caches textures in memory using the url as the cache key. Since the url for the same asset could potentially be different at different times, using url as a cache key would result in more downloads than necessary. Our plan is to implement our own cache that will cache a Texture instance by our uid for the texture and pass that when we need to assign it directly (e.g. to a material). Do you see any issues with this approach? Is there anywhere Babylon depends on having the texture cached in memory by url?
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Revoking data urls for textures | 9 | 244 | January 27, 2023 | |
| From a texture, how to get the native image object? | 3 | 892 | June 21, 2022 | |
| Cloning materials creates many duplicate textures when not needed, and avoiding delays when changing materials | 17 | 1009 | September 30, 2022 | |
| Guys i got some problem | 7 | 696 | March 26, 2022 | |
| Shared cubetexture between scene | 2 | 268 | June 6, 2019 |
