#5558 Adjust map request size dynamically#5560
Conversation
There was a problem hiding this comment.
Pull request overview
Adjusts world map region loading to reduce unnecessary requests during pan/zoom animation and to better utilize the server’s per-message region limit when requesting map blocks.
Changes:
- World map view now uses target pan coordinates (mTargetPanX/Y) when determining which regions to request, avoiding short-lived “animated” loads.
- LLWorldMap::updateRegions now groups contiguous unloaded blocks into variable-size rectangular requests, targeting up to 64 regions per message.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| indra/newview/llworldmapview.cpp | Switches visible-block center calculation from animated pan to target pan to avoid transient region requests. |
| indra/newview/llworldmap.cpp | Implements dynamic grouping of unloaded map blocks into larger rectangular requests (up to the server cap). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Animation takes less than a second, regions take over a second to load. Don't request transitionarry regions, got for target.
c7bf1d0 to
50a308c
Compare
|
@akleshchev I've opened a new pull request, #5561, to work on those changes. Once the pull request is ready, I'll request review from you. |
…rtions Co-authored-by: akleshchev <117672381+akleshchev@users.noreply.github.com> Agent-Logs-Url: https://github.com/secondlife/viewer/sessions/fb89a385-185d-4179-a3a4-39a45a713f4f
|
I have read the CLA Document and I hereby sign the CLA 1 out of 2 committers have signed the CLA. |
Uh oh!
There was an error while loading. Please reload this page.