GraphicsDeviceManager.FindBestDevice Method

Finds the best device configuration that is compatible with the current device preferences.

Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework.Game (in microsoft.xna.framework.game.dll)

Syntax

protected virtual GraphicsDeviceInformation FindBestDevice (
         bool anySuitableDevice
)

Parameters

  • anySuitableDevice
    true if the FindBestDevice can select devices from any available adapter; false if only the current adapter should be considered.

Return Value

The best device configuration found.

See Also

Reference

GraphicsDeviceManager Class
GraphicsDeviceManager Members
Microsoft.Xna.Framework Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista