Map size limit (blocks)


Revision as of 22:22, 19 January 2021 by Quasar (talk | contribs) (Can probably be merged into Blockmap under the Size limitations section)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This map has one sector and a blocklist of size 65534.

Levels in vanilla Doom are limited in size by the blocklist, which essentially enumerates which linedefs cross which blocks in the blockmap. This list may only contain 65535 entries, including "begin" and "end" entries for each block. In principle, therefore, a level could contain as many as 32407 blocks (see figure), but for real maps the empirical limit seems to be somewhere between 10000 and 14400 blocks; the more complex the map, the smaller its area must be.