From 4787965cecd6d7d2ac603e852e6fda8739e1f99e Mon Sep 17 00:00:00 2001 From: Ivan Savenko Date: Tue, 4 Jun 2024 18:04:09 +0000 Subject: [PATCH] Reduce memory usage of adventure map --- client/mapView/MapViewModel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/mapView/MapViewModel.cpp b/client/mapView/MapViewModel.cpp index 38b1271a7..fd2ec6ba9 100644 --- a/client/mapView/MapViewModel.cpp +++ b/client/mapView/MapViewModel.cpp @@ -102,7 +102,7 @@ int3 MapViewModel::getTileAtPoint(const Point & position) const Point MapViewModel::getCacheDimensionsPixels() const { - return getTilesVisibleDimensions() * getSingleTileSizeUpperLimit(); + return getPixelsVisibleDimensions() + getSingleTileSizeUpperLimit() * 2; } Rect MapViewModel::getCacheTileArea(const int3 & coordinates) const