I did some numbers and ended up finding that on my application, if the user uses the max setting possible, I will need to create like 125 000 000 arrayLists.
It is a tile-based map editor. Nice. I use a 2d array map for storing my map’s data.
The max map’s dimension allowed will need 100 000 000+ arrayLists.
Is this okay? Do you have a better idea? I know I could use List(Of T), but I do have reasons to use arrayList in this.. special scenario of mine.
Maybe I should reduce the max settings allowed huh…
You will never show all tiles in one go – limit the number of tiles in memory to those that can be displayed in one go.
If you are allowing zooming, consider a max zoom level that will still let the editor to function well but not require an insane amount of memory to work.