Repository navigation
bugfix(worldbuilder): Draw maps larger than 1024x1024 through the partial terrain window - #3502
tintinhamans wants to merge 3 commits into
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
WalkthroughMap-size limits now apply to height-map parsing and World Builder editing. Both World Builder variants also limit full-map terrain rendering by area. ChangesMap size handling
Priority: ➖ Normal Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to
|
6091bdb to
f8bb8fc
Compare
93ffa84 to
a2b7b04
Compare
a2b7b04 to
415d94a
Compare
|
53d9809 to
fc6bcdc
Compare
fc6bcdc to
f30a5e5
Compare
f30a5e5 to
9701a1b
Compare
WorldBuilder draws the entire map by default, which keeps a vertex buffer and a system memory copy for every 32x32 tile, about 256 bytes per cell. Past roughly 1200x1200 that alone pushes the 32 bit process out of memory.
Maps larger than 1024x1024 now use the partial terrain window, which follows the camera, and the show entire map option is disabled for them. With the terrain no longer scaling with the map, the new map memory warning moves up to 2048x2048.