How can I pre-load all my textures/media textures/movies?

Hello there,

I am creating a visual novel using only UMGs. I do have levels with a single actor inside, but its only purpose is to spawn an AI-Component (in charge of my dialogue trees - I transformed the behavior trees for that purpose) and then add my HUD widget to the viewport. Therefore, the only “heavy” things taking up memory in my game are textures, media textures and media players (that I use to create 2D VFX).

I have already experienced some small slowdowns during my test playthroughs, and was wondering if it was because of the size of the textures I am using (since everytime I press the spacebar, the sprites of the 2 characters on screen change + the background + the potential VFX, etc… And my texture are for the majority 2000x2000px).

Is it possible to pre-load all of my assets before opening my level, so that they don’t have to charge as they are being “called”?

Thank you in advance for your answers!

(Apologies if I am talking nonsense, I am not well-versed into these topics…)

Hey there,

not sure how your system is setup but as ffor your question. 2000x2000 px textures are not that big and there shouldn’t be big performance problems if things are fairly setup.

So for textures I recommend power of 2 (2048px) it is a good practice to use power of 2 images.

How many textures are loaded during a level let’s say ? is there a system already for them to be loaded on the background? Like when animations etc about to finish for one image, in the background other image is async loaded.

Here is a data loading method

You can make a table of images for a level let’s say and you can async load images during play on thee background so they are not kept at memory.