How to reload/update files at runtime?

I see yeah it really shouldn’t be doing that.

I really wonder if there’s a way to make this code work with texture.load() though.

The reason I’m trying to do it this way is becase I have some code to re-scale SVG images, and I wanted to try to optimize it by storing the scaled images in a cached PNGs or BMPs, then loading the textures from those cached files in the hopes that if the textures are being loaded from the same file they would share memory space (to prevent duplicate memory storage of identical textures) as opposed to from buffers which i’m pretty sure is creating unique instances of each ‘image created from buffer’ even if they are identical. I could be wrong though, I’m making a lot of assumptions.