🔧 Increase caches to accommodate larger resolutions

This commit is contained in:
Andreas Schneider 2022-05-08 18:42:01 +02:00
parent d30f01ac64
commit dfef4d3556
1 changed files with 4 additions and 4 deletions

View File

@ -330,9 +330,9 @@ end;
constructor TLandTextureManager.Create; constructor TLandTextureManager.Create;
begin begin
inherited Create; inherited Create;
FArtCache := TMaterialCache.Create(1024); FArtCache := TMaterialCache.Create(4096);
FTexCache := TMaterialCache.Create(128); FTexCache := TMaterialCache.Create(512);
FAnimCache := TMaterialCache.Create(128); FAnimCache := TMaterialCache.Create(512);
FUseAnims := True; FUseAnims := True;
end; end;
@ -594,7 +594,7 @@ begin
FHeight := AHeight; FHeight := AHeight;
FCellWidth := FWidth * 8; FCellWidth := FWidth * 8;
FCellHeight := FHeight * 8; FCellHeight := FHeight * 8;
FBlockCache := TBlockCache.Create(256); FBlockCache := TBlockCache.Create(1024);
FBlockCache.OnRemoveObject := @OnRemoveCachedObject; FBlockCache.OnRemoveObject := @OnRemoveCachedObject;
FOnChange := nil; FOnChange := nil;