Microsoft DirectX 8.1 (C++)

IDirect3DResource8::PreLoad

Preloads a managed resource.

void PreLoad();

Parameters

None.

Return Values

None.

Applies To

This method applies to the following interfaces, which inherit from IDirect3DResource8.

Remarks

Calling this method indicates that the application will need this managed resource shortly. This method has no effect on nonmanaged resources.

PreLoad detects "thrashing" conditions where more resources are being used in each frame than can fit in video memory simultaneously. Under such circumstances Preload silently does nothing.

Requirements

  Header: Declared in D3d8.h.
  Import Library: Use D3d8.lib.