mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-24 08:32:34 +02:00
Merge pull request #4101 from IvanSavenko/memory_usage_fix
[1.5.3] Reduce memory usage of adventure map
This commit is contained in:
commit
569d99a01f
@ -102,7 +102,7 @@ int3 MapViewModel::getTileAtPoint(const Point & position) const
|
|||||||
|
|
||||||
Point MapViewModel::getCacheDimensionsPixels() const
|
Point MapViewModel::getCacheDimensionsPixels() const
|
||||||
{
|
{
|
||||||
return getTilesVisibleDimensions() * getSingleTileSizeUpperLimit();
|
return getPixelsVisibleDimensions() + getSingleTileSizeUpperLimit() * 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
Rect MapViewModel::getCacheTileArea(const int3 & coordinates) const
|
Rect MapViewModel::getCacheTileArea(const int3 & coordinates) const
|
||||||
|
Loading…
Reference in New Issue
Block a user