GameModeConfiguration クラス

定義

GameListEntry がゲーム モードでどのように動作するかに関連するプロパティのコレクション

public ref class GameModeConfiguration sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Gaming.Preview.GamesEnumerationContract, 131072)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class GameModeConfiguration final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Gaming.Preview.GamesEnumerationContract), 131072)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class GameModeConfiguration
Public NotInheritable Class GameModeConfiguration
継承
Object Platform::Object IInspectable GameModeConfiguration
属性

Windows の要件

デバイス ファミリ
Windows Desktop Extension SDK (10.0.16299.0 で導入)
Windows Mobile Extension SDK (10.0.16299.0 で導入)
API contract
Windows.Gaming.Preview.GamesEnumerationContract (v2.0 で導入)
アプリの機能
gameList

注釈

この API は、すべてのアプリで使用できるわけではありません。 開発者アカウントが Microsoft によって特別にプロビジョニングされていない限り、これらの API の呼び出しは実行時に失敗します。

プロパティ

AffinitizeToExclusiveCpus

CPU は、他のプロセスと共有されていないゲームのプロセス専用です。

CpuExclusivityMaskHigh

ビットマスクで表されるゲーム専用の論理コアの CPU 排他性マスク。 コア 0 は、low int の最低ビットで指定され、各コアは次に高いビットです。 GetSystemCpuSetInformation によって返されるコア数を超えてビットを設定することはできません。または set 関数がスローします。

CpuExclusivityMaskLow

ビットマスクで表されるゲーム専用の論理コアの CPU 排他性マスク。 コア 0 は、low int の最低ビットで指定され、各コアは次に高いビットです。 GetSystemCpuSetInformation によって返されるコア数を超えてビットを設定することはできません。または set 関数がスローします。

IsEnabled

関連付けられている GameListEntry がゲーム モードで有効になっている

MaxCpuCount

ゲームで使用される CPU の最大数は、システム デバイス プロセッサ全体の論理コアの合計を超えることはできません

PercentGpuMemoryAllocatedToGame

ゲーム モードが有効になっているときにゲーム専用になる GPU メモリの割合。

PercentGpuMemoryAllocatedToSystemCompositor

ゲーム モードが有効になっているときにシステム コンポジター専用になる GPU メモリの割合。

PercentGpuTimeAllocatedToGame

ゲーム モードが有効になっている場合にゲーム専用になる GPU 時間の割合。

RelatedProcessNames

ゲーム モードの影響を受けないゲーム関連プロセスの一覧を返します。 プロセス名は追加および削除できますが、変更を保持するには SaveAsync() を呼び出す必要があります。

メソッド

SaveAsync()

GameModeConfiguration プロパティへの変更を保存します

適用対象