For my UI, I have what is essentially a spritesheet that contains the icons used in the UI. The whole image file is relatively small, and right now I’ve converted it to base64 and include it directly in my code as a static string variable. Then I simply refer to that variable when creating the Babylon GUI Image objects, and then set the appropriate sourceLeft/sourceTop properties, etc.
But it occurred to me that this may be wasting memory, as unlike a typical image file URL, each Image is not referring to the “same” data url; is my assumption correct? (Would it be better to just have the icon sprite sheet downloaded and cached as a file url or have each icon as a seperate base64 image, as opposed to a base64 spritesheet?)
Thanks