3ds Max C++ API Reference
Memory Limit Percentage

When paging is enabled, the pager swaps bitmap tiles from memory to disk, keeping the total bitmap usage below this limit. More...

Functions

virtual float GetMemoryLimitPercent ()=0
 Returns the memory limit percentage (as a fraction from 0.0 to 1.0) of available padded memory. More...
 
virtual void SetMemoryLimitPercent (float percent)=0
 Sets the memory limit percentage (as a fraction from 0.0 to 1.0) of available padded memory. More...
 

Detailed Description

When paging is enabled, the pager swaps bitmap tiles from memory to disk, keeping the total bitmap usage below this limit.

This is measured as a percentage of available padded memory. Internally, a physical limit (in megabytes) is calculated from the percentage at specific times, during file load, file reset, render begin and render end. When Memory Limit Auto Mode is enabled, the Memory Limit Percentage is overwritten on every Auto Mode update.

See also
GetMemoryAvailablePadded()

Function Documentation

◆ GetMemoryLimitPercent()

virtual float GetMemoryLimitPercent ( )
pure virtual

Returns the memory limit percentage (as a fraction from 0.0 to 1.0) of available padded memory.

◆ SetMemoryLimitPercent()

virtual void SetMemoryLimitPercent ( float  percent)
pure virtual

Sets the memory limit percentage (as a fraction from 0.0 to 1.0) of available padded memory.

This method forces an immediate recalculation of the physical limit, and swaps bitmap tiles from memory to disk if necessary.