- Home /
High resolution background on mobile
My game is a 2D RTS for mobile, and I'm using a static background for my world.
Since the game lets you zoom in on buildings the background needs to have high resolution, otherwise when I zoom in to a building, the background will look really bad.
I was thinking of using a 4K texture for the background, but I don't know if that won't be too heavy on memory for some devices. Do you guys know any other way of doing this?
Not a good idea using 4$$anonymous$$ on mobile, that alone would cost between 15-65 mb of RA$$anonymous$$.
Use 2k max
You could use the zoom distance and change the sprite by script when zoomed
Good luck
I don't think that changing them when zoo$$anonymous$$g would be a good idea, mostly because the map isn't that big which means I would still need all zoomed images in memory.
What I could do is split the 4$$anonymous$$ background into 4 HD images. But it would be the same in terms of memory..
Thank you for the help anyway
Hello,
I don't know how your bg is, but you could buid it using small imagens
Ins$$anonymous$$d of a large Sprite use small assets on the scene
let's say the bg color is a gradient (use a 50x256image and replicate that)
any mountain or cloud, another Sprite
Background is a problem for me too, because it cost a lot of memory, really interested on how you're gonna solve it buddy!!
Your answer
![](https://koobas.hobune.stream/wayback/20220612102352im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
2D optimisation - mobile devices 0 Answers
Unity iOS memory usage 0 Answers
Get sprites from a Texture2D 1 Answer
HiRes Texture Background 1 Answer
Health system 2d 2 Answers