Skip to content

Commit

Permalink
Make it more clear in the documentation how the default value for Res…
Browse files Browse the repository at this point in the history
…ourceLimits.Memory is set.
  • Loading branch information
dlemstra committed Oct 3, 2023
1 parent f4db801 commit 9485e3c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/Magick.NET.Core/IResourceLimits.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ public interface IResourceLimits

/// <summary>
/// Gets or sets the pixel cache limit in bytes. Once this memory limit is exceeded, all subsequent pixels cache
/// operations are to/from disk.
/// operations are to/from disk. The default value of this is 50% of the available memory on the machine in 64-bit mode.
/// When running in 32-bit mode this is 50% of the limit of the operating system.
/// </summary>
ulong Memory { get; set; }

Expand Down
6 changes: 4 additions & 2 deletions src/Magick.NET/ResourceLimits.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ public static ulong MaxMemoryRequest

/// <summary>
/// Gets or sets the pixel cache limit in bytes. Once this memory limit is exceeded, all subsequent pixels cache
/// operations are to/from disk.
/// operations are to/from disk. The default value of this is 50% of the available memory on the machine in 64-bit mode.
/// When running in 32-bit mode this is 50% of the limit of the operating system.
/// </summary>
public static ulong Memory
{
Expand Down Expand Up @@ -141,7 +142,8 @@ ulong IResourceLimits.MaxMemoryRequest

/// <summary>
/// Gets or sets the pixel cache limit in bytes. Once this memory limit is exceeded, all subsequent pixels cache
/// operations are to/from disk.
/// operations are to/from disk. The default value of this is 50% of the available memory on the machine in 64-bit mode.
/// When running in 32-bit mode this is 50% of the limit of the operating system.
/// </summary>
ulong IResourceLimits.Memory
{
Expand Down

0 comments on commit 9485e3c

Please sign in to comment.