Hello, this is more of an optimized way to do something question.
What I am trying to look into is streamed loading. The project in question is a side scroller, so the implementation shouldn't have to be too complex. I am working on two ideas, and leaning strongly towards one of them, but have enough doubt to get some outside opinions.
The levels will be tile-based, and for optimization we only want part of the level in memory. I was thinking of establishing blocks of each level, where the blocks loaded will be the current block the player is in, and the possible connecting blocks that the player could possibly move into next.
My question to the community as a whole is this:
Would it be a better idea to have one file hold each block, or have one file per level, with subdivisions detailing each block?
I see advantages and disadvantages of both ways. Any opinions are greatly appreciated.