Optimization Help
Hi All,
I have a stats page for my deck builder video game. I noticed it drops a lot of frames when I show it in the game. There are over 30 cards with unique pictures that can show up I want to show each card in the game and which ones the player has but it really slows the game down. I’ve attached a backup. I created a solo for the back of the card with a separate low res image so it won’t waste memory on the cards that are scaled down but it is still very slow. I know the card faces are a higher resolution than they need to be when scaled down but I’m trying to avoid creating a separate image for each one. Right now each card is a component. Since the list is a fixed size for the game, I have each one in there individually. Is this a case where I should use lists instead now that we have them? Is there an improvement if they will all be visible anyway?
If all else fails, I could make it filter by suit or rank so it only shows at most 6 cards at a time but I want to check if anyone else has a better idea. Thanks!