summaryrefslogtreecommitdiff
path: root/indra/newview/llworldmipmap.h
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2024-06-27 13:12:43 -0500
committerGitHub <noreply@github.com>2024-06-27 13:12:43 -0500
commitab87978cbc71cd4c83648627998055a010700f05 (patch)
tree1bf605af76de6f129b10c271517c33acae29fbaa /indra/newview/llworldmipmap.h
parente95df8a28436f6893dfe2f9e46e11fb18a0e1598 (diff)
1836 dont store texture in system memory unless absolutely necessary (#1843)
* #1836 Texture memory usage overhaul. Much decrufting - don't keep a copy of textures in system memory - use GPU to downrez textures instead of reloading from cache - use GPU to generate brightness/darkness bumpmaps
Diffstat (limited to 'indra/newview/llworldmipmap.h')
-rw-r--r--indra/newview/llworldmipmap.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/indra/newview/llworldmipmap.h b/indra/newview/llworldmipmap.h
index ab98b55b72..907f24d1e7 100644
--- a/indra/newview/llworldmipmap.h
+++ b/indra/newview/llworldmipmap.h
@@ -74,11 +74,13 @@ public:
// Convert world coordinates to mipmap grid coordinates at a given level
static void globalToMipmap(F64 global_x, F64 global_y, S32 level, U32* grid_x, U32* grid_y);
+ // Load the relevant tile from S3
+ static LLPointer<LLViewerFetchedTexture> loadObjectsTile(U32 grid_x, U32 grid_y, S32 level);
+
private:
// Get a handle (key) from grid coordinates
U64 convertGridToHandle(U32 grid_x, U32 grid_y) { return to_region_handle(grid_x * REGION_WIDTH_UNITS, grid_y * REGION_WIDTH_UNITS); }
- // Load the relevant tile from S3
- LLPointer<LLViewerFetchedTexture> loadObjectsTile(U32 grid_x, U32 grid_y, S32 level);
+
// Clear a level from its "missing" tiles
void cleanMissedTilesFromLevel(S32 level);