🔧 Increase caches to accommodate larger resolutions
This commit is contained in:
parent
d30f01ac64
commit
dfef4d3556
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue