I need to make not repeating background for platformer. I can't find any description of implementation and I developed algorithm but I'm not sure that it's right.
I can't load one big texture per level, because many devices don't support textures more than 2048x2048 pixels and my levels require 4096 pixels at least on the one side. Therefore I have to cut big texture into smalls(512x512, 1024x1024), load them using separate thread and render. Picture shows it:
Green rectangle is screen(for example Nexus S with display 800x480)
- In case 2 layers I have to keep in memory 4 big textures.
- I have to constantly load and unload big textures.
- Additional thread.
If it's not problems then ok :) But it seems that I'm doing something wrong.