Repository navigation
bugfix(worldbuilder): Draw maps larger than 1024x1024 through the partial terrain window - #3502
tintinhamans wants to merge 1 commit 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
WalkthroughBoth Generals and GeneralsMD WorldBuilder variants raise the large-map warning threshold to 2048 and restrict full-map terrain rendering to maps with an area of at most 1,048,576 cells. ChangesMap size handling
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Suggested reviewers: Merge Risk: 🟡 Moderate · up to
|
6091bdb to
f8bb8fc
Compare
93ffa84 to
a2b7b04
Compare
a2b7b04 to
415d94a
Compare
[Medium impact] The PR appears safe to merge.
|
9701a1b to
e67f7de
Compare
b6cd311 to
79b8e31
Compare
da891f3 to
fe68496
Compare
|
Needs Rebase |
…tial terrain window
fe68496 to
a8d121b
Compare
|
Rebased |
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.