I have like 2000 sprites in my sprite library and can't fit them all in a single texture2D (4096x4096)
So I decided to create a spritelib class which generates textures and stores the location of my sprites.
That works like a charm but now I read on the Internet that most people frown upon the use texture sizes of 4096x4096 but it looks like these people are talking about 3D worlds with heaps of textures.
Right now I am only creating a 2D world and have 3 of those large textures.
My questions are:
- When will this become a problem?
- If I optimize the draw events to minimize the swapping of textures(which I will surely do) does it matter?
- If using these huge textures is going to be a problem what would be an optimal setting for texture size? Just need to change a const