yimx said:
Hello, I'm developing a game engine and I'm currently importing all the textures in the Asset folder when the project is opened.
Do you mean doing this in some kind of editor or in a runtime (which will run the actual project on engine)?
Dynamic asset loading in runtime obviously makes sense - for 2 reasons - first one is, that you don't need to load ALL assets for given game into memory, as they may not fit into memory, and second one is loading times. When loading zillion assets it's also going to take a long time to load anything.
Editor is another thing, and often more problematic decision. First of all - how big are your projects? If they are small enough to easily fit RAM and VRAM, and more importantly you have well defined data formats that are very fast to load, loading ALL files may make sense. The problem is what to do when projects become too big.
- You may need preview on images/meshes/… - dynamic loading when looking through assets will be necessary
- You will need to track what is in scene and hold it in RAM and VRAM for use