Browse Source

Reduce memory usage of adventure map

Ivan Savenko 1 năm trước cách đây
mục cha
commit
4787965cec
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      client/mapView/MapViewModel.cpp

+ 1 - 1
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