Re: No more than 255 tiles?
Posted: Sun Sep 03, 2023 11:08 pm
No, 64 bits can index 2⁶⁴ or about 16 * 10¹⁸ tiles. In words this is sixteen trillion or sixteen pentillion, depending on whether you subscribe to the long or the short scale. This is nowhere near a decillion (10⁶⁰ or 10³³, depending on the scale). However, this is completely irrelevant. The relevant number is 8 bytes per tile (or 8 kilobytes per chunk) for the tile IDs, plus some memory for those tiles which have been assigned a meaning. There is no need to allocate memory for unused tile IDs.TheKillerChicken wrote: ↑Sat Sep 02, 2023 6:30 pmIf every byte was set to the true 64-bit integer (1 decellion), this game would need ~200 TB of memory. So that is why these practical values exist.