Microsoft DirectX 9.0 SDK Update (October 2004)

Resource.PreLoad Method

Language:

Note: This documentation is preliminary and is subject to change.

Preloads a managed resource.

Definition

Visual Basic .NET Public Sub PreLoad()
C# public void PreLoad();
Managed C++ public: void PreLoad();
JScript .NET public function PreLoad();

Remarks

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

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

Applies To

BaseTexture, IndexBuffer, Surface, VertexBuffer

© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center