Skip to content

SetOption

Navigation: ADLX SDK ReferencesADLX InterfacesSystemIADLXVariableGraphicsMemory

Syntax

ADLX_RESULT    SetOption (IADLXVariableGraphicsMemoryOption* pOption)

Parameters

#DirectionNameTypeDescription
1.[out]pOptionIADLXVariableGraphicsMemoryOptionThe pointer to the Variable Graphics Memory option interface.

Return Value

If the Variable Graphics Memory option is successfully set, ADLX_OK is returned.

If the Variable Graphics Memory option is not successfully set, an error code is returned.

Refer to ADLX_RESULT for success codes and error codes.

Additional Info

Variable Graphics Memory optimizes memory usage for best performance based on the selected profile by converting up to 75% of the system RAM to dedicated graphics memory (vRAM).

Note that a system restart is required to apply new Variable Graphics Memory options.

The SetOption method triggers a system restart. It is recommended that the application advises users to save any work, and requests confirmation before proceeding with the action invoked by this method.

Requirements

Headerinclude “ISystem3.h”
Minimum version1.5

See Also: IADLXVariableGraphicsMemoryOption, ADLX Enums