Would UI on a sprite sheet increase load times?

The title pretty much explains what I want to ask but pretty much I am asking if you had a bunch of icons you want in your game (20+) would it be more efficient to have them on a sprite sheet and then crop them out in game or would this not be affected much?
I am asking this question because if Roblox has more than 1 asset it has takes longer to load and especially with 20+ icons/UI made in illustrator.

(The sprite sheet would be used for all icons in game and cropped for each icon.)

Every Image itself has to individually Load itself, meaning if you where to make it so that you have each image individual it would take more performance. Also, when a client is shown an image it takes a little bit for it to load in. It also depends how you are using the images. For example if you where to be using these images at a rapid pace or every 1 seconds a sprite sheet would be good as it decreases the amount of resources needed. However, if you are just using the images once and not changing them Individual Images would work fine as there is no need for new images to be loaded on a loop. Sprite sheets are always something that work good in any case but are not always necessary. I hope this helped you understand more in depth on what to use.

Having a sprite sheet to load all icons/images isn’t needed when ContentProviders PreloadAsync exists. I’d highly recommend reading up on it, and what it does.

1 Like

It’d still be probably be more performant and save on memory to load a single sprite sheet

I always use a sprite sheet for small icons, since it’s smaller in total file size and easier to update in the future if you ever need to reupload or redesign them!

4 Likes

Thank you. I just needed some reassurance on this because I was probably going to do it anyways. How would it be easier to update if you have to re-crop images/zoom in on the image for each UI?

If you keep the icons the same size and keep them in the same place on the spritesheet, you can easily update how they look just by uploading a new spritesheet.