Browse Source

set a sensible cache size for skia.. based on what flutter uses.

pull/4619/head
Dan Walmsley 6 years ago
parent
commit
6ed1669803
  1. 2
      src/Skia/Avalonia.Skia/SkiaOptions.cs

2
src/Skia/Avalonia.Skia/SkiaOptions.cs

@ -16,6 +16,6 @@ namespace Avalonia
/// <summary>
/// The maximum number of bytes for video memory to store textures and resources.
/// </summary>
public long? MaxGpuResourceSizeBytes { get; set; }
public long? MaxGpuResourceSizeBytes { get; set; } = 1024 * 600 * 4 * 12; // ~28mb 12x 1024 x 600 textures.
}
}

Loading…
Cancel
Save